yo *_*nly 6 python runtime-error virtualenv
我正在关注“learn python 3 the hard way”中的“A Project Skeleton”,并且发生了这个错误。我仍然不知道这些实际上是什么,只是按照步骤操作。那么为什么会出现这个问题以及如何解决这个问题?
\nC:\\>pip install virtualenv\nCollecting virtualenv\n Downloading virtualenv-20.0.35-py2.py3-none-any.whl (4.9 MB)\n |\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88| 4.9 MB 504 kB/s\nCollecting distlib<1,>=0.3.1\n Downloading distlib-0.3.1-py2.py3-none-any.whl (335 kB)\n |\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88| 335 kB 6.4 MB/s\nCollecting filelock<4,>=3.0.0\n Downloading filelock-3.0.12-py3-none-any.whl (7.6 kB)\nCollecting appdirs<2,>=1.4.3\n Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)\nCollecting six<2,>=1.9.0\n Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)\nInstalling collected packages: distlib, filelock, appdirs, six, virtualenv\nSuccessfully installed appdirs-1.4.4 distlib-0.3.1 filelock-3.0.12 six-1.15.0 virtualenv-20.0.35\n\nC:\\>mkdir . venvs\nAccess is denied.\nError occurred while processing: ..\n\nC:\\>mkdir.venvs\n\nC:\\>mkdir.venvs\nA subdirectory or file .venvs already exists.\n\nC:\\>virtualenv -system-site -packages.venvs/lpthw\nRuntimeError: failed to find interpreter for Builtin discover of python_spec='ackages.venvs/lpthw'\n\nC:\\>virtualenv-system-site-packages.venvs/lpthw\n'virtualenv-system-site-packages.venvs' is not recognized as an internal or external command,\noperable program or batch file.\n\nC:\\>mkdir.venvs\nA subdirectory or file .venvs already exists.\n\nC:\\>virtualenv -system-site -packages.venvs/lpthw\nRuntimeError: failed to find interpreter for Builtin discover of python_spec='ackages.venvs/lpthw'\n\nC:\\>mkdir.venvs\nA subdirectory or file .venvs already exists.\n\nC:\\>mkdir.venvs\nA subdirectory or file .venvs already exists.\n\nC:\\>mkdir.venvs\n\nC:\\>virtualenv -system-site -packages.venvs/lpthw\nRuntimeError: failed to find interpreter for Builtin discover of python_spec='ackages.venvs/lpthw'\n\nC:\\>\nRun Code Online (Sandbox Code Playgroud)\n
virtualenv 解释-packages为-pwhich 是该--python标志的缩写。你的指南中有 3 个错别字,应该是:
virtualenv --system-site-packages .venvs/lpthw
Run Code Online (Sandbox Code Playgroud)
因此,只有一个具有正确 -- 符号的标志和 .venvs/lpthw 是路径,而不是标志的一部分。
| 归档时间: |
|
| 查看次数: |
14195 次 |
| 最近记录: |