安装pipenv时发生的错误
C:\Users\??????>pip install pipenvCollecting pipenv
Using cached https://files.pythonhosted.org/packages/c1/a3/d266421362565864f130cb97f55f70c763b843c9a67311d215d75b7ec46
4/pipenv-2021.5.29-py2.py3-none-any.whl
Requirement already satisfied: pip>=18.0 in c:\programdata\anaconda3\lib\site-packages (from pipenv) (19.0.3)
Collecting virtualenv (from pipenv)
Using cached https://files.pythonhosted.org/packages/ab/9f/a0d49dcde93f27125f011f8ce60f86840bc69c95695ed8ed2d77adb2cb8
c/virtualenv-20.7.2-py2.py3-none-any.whl
Requirement already satisfied: virtualenv-clone>=0.2.5 in c:\programdata\anaconda3\lib\site-packages (from pipenv) (0.5.
6)
Requirement already satisfied: setuptools>=36.2.1 in c:\programdata\anaconda3\lib\site-packages (from pipenv) (40.8.0)
Requirement already satisfied: certifi in c:\programdata\anaconda3\lib\site-packages (from pipenv) (2019.3.9)
Requirement already satisfied: six<2,>=1.9.0 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv) (1.
12.0)
Requirement already satisfied: distlib<1,>=0.3.1 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv)
(0.3.2)
Collecting importlib-metadata>=0.12; python_version < "3.8" (from virtualenv->pipenv)
Using cached https://files.pythonhosted.org/packages/c0/72/4512a88e402d4dc3bab49a845130d95ac48936ef3a9469b55cc79a60d84
d/importlib_metadata-4.6.4-py3-none-any.whl
Requirement already satisfied: platformdirs<3,>=2 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv
) (2.2.0)
Collecting backports.entry-points-selectable>=1.0.4 (from virtualenv->pipenv)
Using cached https://files.pythonhosted.org/packages/0c/cd/1e156227cad9f599524eb10af62a2362f872910a49402dbd2bea2dedc91
c/backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl
Requirement already satisfied: filelock<4,>=3.0.0 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv
) (3.0.10)
Collecting zipp>=0.5 (from importlib-metadata>=0.12; python_version < "3.8"->virtualenv->pipenv)
Using cached https://files.pythonhosted.org/packages/92/d9/89f433969fb8dc5b9cbdd4b4deb587720ec1aeb59a020cf15002b9593ee
f/zipp-3.5.0-py3-none-any.whl
Requirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in c:\programdata\anaconda3\lib\site-pac
kages (from importlib-metadata>=0.12; python_version < "3.8"->virtualenv->pipenv) (3.10.0.0)
Installing collected packages: zipp, importlib-metadata, backports.entry-points-selectable, virtualenv, pipenv
Found existing installation: zipp 0.3.3
Uninstalling zipp-0.3.3:
Could not install packages due to an EnvironmentError: ?????: 'c:\\programdata\\anaconda3\\lib\\site-packag
es\\__pycache__\\zipp.cpython-37.pyc'
Consider using the `--user` option or check the permissions.
C:\Users\??????>
{:10_266:} 本帖最后由 louxinghao 于 2021-8-16 16:32 编辑
试试这个
pip install --user pipenv louxinghao 发表于 2021-8-16 16:11
试试这个
C:\Users\??????>pip install -- user due pipenv
Collecting user
Could not find a version that satisfies the requirement user (from versions: )
No matching distribution found for user
C:\Users\??????>pip install --user due pipenv
Collecting due
Could not find a version that satisfies the requirement due (from versions: )
No matching distribution found for due
C:\Users\??????>pip install --user pipenv
Collecting pipenv
Using cached https://files.pythonhosted.org/packages/c1/a3/d266421362565864f130cb97f55f70c763b843c9a67311d215d75b7ec46
4/pipenv-2021.5.29-py2.py3-none-any.whl
Requirement already satisfied: virtualenv-clone>=0.2.5 in c:\programdata\anaconda3\lib\site-packages (from pipenv) (0.5.
6)
Requirement already satisfied: certifi in c:\programdata\anaconda3\lib\site-packages (from pipenv) (2019.3.9)
Requirement already satisfied: pip>=18.0 in c:\programdata\anaconda3\lib\site-packages (from pipenv) (19.0.3)
Requirement already satisfied: setuptools>=36.2.1 in c:\programdata\anaconda3\lib\site-packages (from pipenv) (40.8.0)
Collecting virtualenv (from pipenv)
Using cached https://files.pythonhosted.org/packages/ab/9f/a0d49dcde93f27125f011f8ce60f86840bc69c95695ed8ed2d77adb2cb8
c/virtualenv-20.7.2-py2.py3-none-any.whl
Collecting backports.entry-points-selectable>=1.0.4 (from virtualenv->pipenv)
Using cached https://files.pythonhosted.org/packages/0c/cd/1e156227cad9f599524eb10af62a2362f872910a49402dbd2bea2dedc91
c/backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl
Collecting importlib-metadata>=0.12; python_version < "3.8" (from virtualenv->pipenv)
Using cached https://files.pythonhosted.org/packages/c0/72/4512a88e402d4dc3bab49a845130d95ac48936ef3a9469b55cc79a60d84
d/importlib_metadata-4.6.4-py3-none-any.whl
Requirement already satisfied: filelock<4,>=3.0.0 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv
) (3.0.10)
Requirement already satisfied: distlib<1,>=0.3.1 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv)
(0.3.2)
Requirement already satisfied: six<2,>=1.9.0 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv) (1.
12.0)
Requirement already satisfied: platformdirs<3,>=2 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv
) (2.2.0)
Requirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in c:\programdata\anaconda3\lib\site-pac
kages (from importlib-metadata>=0.12; python_version < "3.8"->virtualenv->pipenv) (3.10.0.0)
Collecting zipp>=0.5 (from importlib-metadata>=0.12; python_version < "3.8"->virtualenv->pipenv)
Using cached https://files.pythonhosted.org/packages/92/d9/89f433969fb8dc5b9cbdd4b4deb587720ec1aeb59a020cf15002b9593ee
f/zipp-3.5.0-py3-none-any.whl
Installing collected packages: zipp, importlib-metadata, backports.entry-points-selectable, virtualenv, pipenv
The script virtualenv.exe is installed in 'C:\Users\??????\AppData\Roaming\Python\Python37\Scripts' which is not on PA
TH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
The scripts pipenv-resolver.exe and pipenv.exe are installed in 'C:\Users\??????\AppData\Roaming\Python\Python37\Scrip
ts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed backports.entry-points-selectable-1.1.0 importlib-metadata-4.6.4 pipenv-2021.5.29 virtualenv-20.7
.2 zipp-3.5.0
C:\Users\??????>pipenv
'pipenv' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\??????>
还是不行 试试重新打开一个cmd运行pipenv看看 louxinghao 发表于 2021-8-16 16:35
试试重新打开一个cmd运行pipenv看看
C:\Users\??????>pip install --user pipenv
Requirement already satisfied: pipenv in c:\users\??????\appdata\roaming\python\python37\site-packages (2021.5.29)
Requirement already satisfied: virtualenv-clone>=0.2.5 in c:\programdata\anaconda3\lib\site-packages (from pipenv) (0.5.
6)
Requirement already satisfied: virtualenv in c:\users\??????\appdata\roaming\python\python37\site-packages (from pipenv)
(20.7.2)
Requirement already satisfied: setuptools>=36.2.1 in c:\programdata\anaconda3\lib\site-packages (from pipenv) (40.8.0)
Requirement already satisfied: certifi in c:\programdata\anaconda3\lib\site-packages (from pipenv) (2019.3.9)
Requirement already satisfied: pip>=18.0 in c:\programdata\anaconda3\lib\site-packages (from pipenv) (19.0.3)
Requirement already satisfied: platformdirs<3,>=2 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv
) (2.2.0)
Requirement already satisfied: six<2,>=1.9.0 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv) (1.
12.0)
Requirement already satisfied: filelock<4,>=3.0.0 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv
) (3.0.10)
Requirement already satisfied: backports.entry-points-selectable>=1.0.4 in c:\users\??????\appdata\roaming\python\python
37\site-packages (from virtualenv->pipenv) (1.1.0)
Requirement already satisfied: importlib-metadata>=0.12; python_version < "3.8" in c:\users\??????\appdata\roaming\pytho
n\python37\site-packages (from virtualenv->pipenv) (4.6.4)
Requirement already satisfied: distlib<1,>=0.3.1 in c:\programdata\anaconda3\lib\site-packages (from virtualenv->pipenv)
(0.3.2)
Requirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in c:\programdata\anaconda3\lib\site-pac
kages (from importlib-metadata>=0.12; python_version < "3.8"->virtualenv->pipenv) (3.10.0.0)
Requirement already satisfied: zipp>=0.5 in c:\users\??????\appdata\roaming\python\python37\site-packages (from importli
b-metadata>=0.12; python_version < "3.8"->virtualenv->pipenv) (3.5.0)
C:\Users\??????>pipenv
'pipenv' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\??????>
页:
[1]