python3.7安装,没问题
pycharm2010没问题
alt+enter python脚本不能import
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'D:\Users\Administrator\PycharmProjects\gp\venv\Scripts\python.exe'.
判断pip问题
升级出问题
C:\Users\Administrator>pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.0.3
Uninstalling pip-19.0.3:
Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'd:\\program files\\python\\python37-32\\scripts\\pip.exe'
Consider using the `--user` option or check the permissions.
强制升级
python -m ensurepip
python -m pip install --upgrade pip
C:\Users\Administrator>pip --version
pip 24.0 from d:\program files\python\python37-32\lib\site-packages\pip (python 3.7)
还有问题,可以尝试
python -m pip
install
pip==20.2.4
pip版本降级为20.2.4
pip
install
pip==20.3.4
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip==20.2.4
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip==20.2.4
pip install -i http://pypi.douban.com/simple/ pip -U --trusted-host pypi.douban.com --user
解决pychamr no such option: --build-dir”