创建python virtualenv时遇到问题

时间:2019-10-10 12:07:19

标签: python pip virtualenv

enter image description here

enter image description here我正在尝试设置virtualenv,但没有安装setuptools,pip,wheel等,而是显示了此信息

raghavsethi@Raghavs-MacBook-Air FlaskINtroduction % virtualenv env
Using base prefix '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7'
New python executable in /Users/raghavsethi/Desktop/FlaskINtroduction/env/bin/python3
Not overwriting existing python script /Users/raghavsethi/Desktop/FlaskINtroduction/env/bin/python (you must use /Users/raghavsethi/Desktop/FlaskINtroduction/env/bin/python3)
Traceback (most recent call last):
  File "/usr/local/bin/virtualenv", line 10, in <module>
    sys.exit(main())
  File "/Library/Python/3.7/site-packages/virtualenv.py", line 870, in main
    symlink=options.symlink,
  File "/Library/Python/3.7/site-packages/virtualenv.py", line 1156, in create_environment
    install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)
  File "/Library/Python/3.7/site-packages/virtualenv.py", line 1621, in install_python
    shutil.copy(original_python, py_executable)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/shutil.py", line 245, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/shutil.py", line 103, in copyfile
    if _samefile(src, dst):
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/shutil.py", line 88, in _samefile
    return os.path.samefile(src, dst)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/genericpath.py", line 96, in samefile
    s1 = os.stat(f1)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

0 个答案:

没有答案