配置 Python3.7.4 免安装版本

Python About 738 words

配置 Python 免安装版

  1. 下载地址:https://www.python.org/downloads
  2. 选择免安装版本,下载后解压到指定磁盘。
  3. 添加环境变量。
  4. 执行python -V

安装pip

  • 下载安装文件
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  • 安装pip
python get-pip.py
  • 添加环境变量(pip安装在Python安装目录下LibScript文件夹中)
D:\python-3.7.4\Scripts
  • 执行pip -V
Traceback (most recent call last):
  File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 193, in _run_module_as_main
  File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 85, in _run_code
  File "D:\tool\python-3.7.4\Scripts\pip.exe\__main__.py", line 5, in <module>
ModuleNotFoundError: No module named 'pip'

解决 pip 无法执行问题

python37._pth(文件在Python安装目录下)文件下添加

Lib\site-packages

参考

安装pip

pip无法使用

Views: 7,705 · Posted: 2019-10-08

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh