-bash: pip: command not found
程序员文章站
2022-07-12 13:41:43
...
[[email protected] ~]# curl -O https://bootstrap.pypa.io/get-pip.py
[[email protected] ~]# python get-pip.py
---- or ----
- 先安装
setuptools
将下载后的tar文件解压,用CMD模式进入到解压后的文件所在的目录执行命令:
下载地址:https://pypi.python.org/pypi/setuptools#downloads
python setup.py install
- 如果报错
File "/usr/local/src/setuptools-39.0.1/setuptools/command/bdist_egg.py", line 234, in run
dry_run=self.dry_run, mode=self.gen_header())
File "/usr/local/src/setuptools-39.0.1/setuptools/command/bdist_egg.py", line 495, in make_zipfile
z = zipfile.ZipFile(zip_filename, mode, compression=compression)
File "/usr/local/lib/python2.7/zipfile.py", line 736, in __init__
"Compression requires the (missing) zlib module"
RuntimeError: Compression requires the (missing) zlib module
则需要先安装 yum -y install zlib zlib-devel
在编译安装 python 后,才能安装 setuptools
- 安装
pip
下载地址:https://pypi.python.org/pypi/pip#downloads
将下载后的tar文件解压,用CMD模式进入到解压后的文件所在的目录执行命
python setup.py install
- 安装完成
推荐阅读
-
bash scp command not found的解决方法
-
pip 错误unused-command-line-argument-hard-error-in-future解决办法
-
ubuntu下安装vue/cli提示No command 'vue' found
-
解决Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-f8IeEI/MYSQL-python/
-
linux 执行 javac 报错 javac: command not found
-
解决 bash: vue command not found
-
sudo service: command not found 报错的解决方法
-
Pycharm下载pyinstaller报错:You should consider upgrading via the 'python -m pip install --upgrade pip' command的解决方法
-
linux下提示bash:command not found
-
Pycharm下载pyinstaller报错:You should consider upgrading via the 'python -m pip install --upgrade pip' command的解决方法