1. 下载get-pip.py
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
执行
python get-pip.py
2. 安装一个模块
pip install selenium
3. 安装jupyter
需要sqlite3库,安装python3的时候,需要激活sqlite3模块,需要重新编译安装 python
sudo ./configure --enable-loadable-sqlite-extensions --with-ssl --prefix=/opt/python3/
make && make install
遇到的问题
Traceback (most recent call last):
File "get-pip.py", line 21492, in <module>
main()
File "get-pip.py", line 197, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
sudo yum install zlib*
重新make && make Install
网友评论