临时安装python环境跑脚本出问题you use the correct version of ‘pip‘ installed

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”

  • 6
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值