git-bash.exe上有Pipenv的问题

问题描述 投票:0回答:1

操作系统信息:

OS: Windows 10 
Version: 1909
Build: 18363.476

Python信息:

Python: v3.8.0 
Python path: C:\Python\38
Pip: v
Pip Path: C:\Python\38\Scripts

Terminal:

shell: bash.exe (git-bash)
version: 2.24.0.2-64-bit

问题:尝试启动在bash.exe(git-bash)上运行的依赖项管理,并最终遇到一些问题...

$ pipenv shell                                                                                       
Warning: Python 2.7 was not found on your system…
You can specify specific versions of Python with:
  $ pipenv --python path\to\python

[尝试安装另一个软件包,例如pipenv install django将给我同样的错误。

我不确定确切的错误是什么,在搜索答案2天后找不到任何解决方案。

我做了什么?

我已从此站点https://www.python.org/downloads/release/python-380/下载了python3.8(用于win 64 AMD64 / EM64T / x64的Windows x86-64可执行安装程序)。

按照我的自定义路径C:\Python\38安装python3.8,并确保在开始安装之前已选中“将Python3.8添加到PATH”

在系统中完成安装python之后,我已经安装了以下pipenv

pip install pipenv

在通过pipfreeze确认后,安装成功。>

pip freeze
astroid==2.3.3
autopep8==1.4.4    
certifi==2019.11.28
colorama==0.4.1
isort==4.3.21
lazy-object-proxy==1.4.3
mccabe==0.6.1
pipenv==2018.11.26
pycodestyle==2.5.0
pylint==2.4.3
six==1.13.0
virtualenv==16.7.8
virtualenv-clone==0.5.3
wrapt==1.11.2

并且在C:\ Python \ 38 \ Scripts中有pipenv.py。>>

我的问题到底是什么,有什么办法可以解决?提前致谢。

OS信息:OS:Windows 10版本:1909 Build:18363.476 Python信息:Python:v3.8.0 Python路径:C:\ Python \ 38 Pip:v Pip路径:C:\ Python \ 38 \ Scripts终端:shell: bash.exe(git-bash)版本:...

python django pip git-bash pipenv
1个回答
0
投票

如果您使用的是python3。您可以使用pip3 install django安装。

如果您想使用pipenv

© www.soinside.com 2019 - 2024. All rights reserved.