pip 报错

pip 安装

初始化系统 安装PIP 问题?

yun install wget gcc gcc-c++ -y
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz 
tar -xf Python-2.7.6.tgz mv Python-2.7.6 /usr/local/python
cd /usr/local/python/
./configure --prefix=/usr/local/python/
make &&make install
ln -s /usr/local/python/bin/python2.7 /usr/bin/python
python -v

wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
tar -xf pip-9.0.1.tar.gz 

mv pip-9.0.1 /usr/local/pip
python setup.py install
提示报错:?
ImportError: No module named setuptools
则安装 setuptools

wget wget http://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz
tar -xf setuptools-2.0.tar.gz
mv setuptools-2.0 /usr/local/pip/setuptools
cd /usr/local/pip/setuptools/
python setup.py install
又提示报错:?
Compression requires the (missing) zlib module
没有 zlib 模块;这个可以直接 yum 安装
yum install zlib zlib-devel -y
此时python 需要重新编译

cd /usr/local/python/
make &&make install

cd /usr/local/pip/setuptools
python setup.py install
cd /usr/local/pip
python setup.py install

创建pip软命令链接:
ln -s /usr/local/python27/bin/pip /usr/bin/pip
至此pip 就安装好了 ;

  

时间: 2024-11-09 05:03:14

pip 报错的相关文章

pip报错及修复

pip报错: 修复: wget https://pypi.python.org/packages/3c/ec/a94f8cf7274ea60b5413df054f82a8980523efd712ec55a59e7c3357cf7c/pyparsing-2.2.0.tar.gz (下载pyparsing-2.2.0.tar.gz) gunzip pyparsing-2.2.0.tar.gz tar -xvf pyparsing-2.2.0.tar cd pyparsing-2.2.0 sudo p

CentOS7.5 Python3安装pip报错:ModuleNotFoundError: No module named '_ctypes' --Python3

1.问题:pyhontModuleNotFoundError: No module named '_ctypes'  操作系统:CentOS7.5 安装完Pyhotn3后(如何安装Python3,安装后我的python.python3命令指向python3;python2命令和python2.7指向python2.7),发现没有安装两个版本都没有pip.所以下载好pip包,用系统自带python2安装如下所示: [root@VM_39_157_centos ~]# wget https://fi

解决'python -m pip install --upgrade pip' 报错问题

再安装包的时候提示 You are using pip version 9.0.3, however version 10.0.1 is available.You should consider upgrading via the 'python -m pip install --upgrade pip' command.12而我按照要求运行python -m pip install --upgrade pip 后仍然无法成功升级,提示如下: (venv) D:\Fish>python -m

解压版本Python,手动安装pip报错,pip得到报错" No module named 'pip' "

解压版本Python,手动安装pip报错 λ pip Traceback (most recent call last): File "runpy.py", line 193, in _run_module_as_main File "runpy.py", line 86, in _run_code File "D:\tools\python-3.8.1-embed-amd64\Scripts\pip.exe\__main__.py", line

本地同时安装python2和python3时pip报错

引言: 安装完成后,想测试一下两个版本的pip是否都可以正常工作,结果python3的能正常工作,但是pip2 --version就会报错,报错信息如下: Traceback (most recent call last): File "/usr/local/bin/pip", line 9, in <module> load_entry_point('pip==1.3.1', 'console_scripts', 'pip')() File "/usr/loca

pip报错解决:EnvironmentError: mysql_config not found

centos7下使用python类库MySQL-python操作mysql.pip安装类库:pip install MySQL-python报错提示:mariadb EnvironmentError: mysql_config not found 安装mysql-devel:yum -y install mysql-devel 执行pip install MySQL-python,又出现报错:error: command 'gcc' failed with exit status 1 这是由于没

Fedora升级后Python虚拟环境中的pip报错

今日Fedora从28升级到29后,进入Python的虚拟目录后,本来想使用pip更新下包,结果报错了,如下: Traceback (most recent call last): File "/home/kowalski/Projects/rifm/venv/bin/pip", line 7, in <module> from pip._internal import main ModuleNotFoundError: No module named 'pip' 自己也没

pip 报错找不到pip问题

具体报错如下 解决办法: wget https://bootstrap.pypa.io/get-pip.py  --no-check-certificate 使用当前python3运行 原文地址:https://www.cnblogs.com/ZFBG/p/10954602.html

CMD终端关于pip报错,scrapy报错的一种处理方法

如果在终端输入pip,或scrapy,报如下错误: Fatal error in launcher: Unable to create process using '"' 这通常是因为你的电脑装了两个版本的python(python2.x和python3.x所致). 通常你只要在CMD终端输入的命令前加上 python -m 就能解决这个问题,根本不需要修改什么: 用pip: python -m pip install scrapy 用scrapy: python -m scrapy 这样就能打