pip安装命令集合

先加速 使用清华大学镜像源(一定要用,会少很多坑)

https://mirrors.tuna.tsinghua.edu.cn/help/alpine/

 

超时加上参数  --default-timeout=1000

 

//安装cv2

pip install opencv-python

 

//安装mxnet

pip install mxnet-cu90

 

//安装tensorflow

pip install tensorflow

 

Traceback (most recent call last):
  File "demo.py", line 7, in <module>
    import cv2
  File "/usr/lib64/python2.7/site-packages/cv2/__init__.py", line 3, in <module>
    from .cv2 import *
ImportError: libSM.so.6: cannot open shared object file: No such file or directory

//安装
yum install -y python-qt4

 

//安装PIL

pip install pillow

 

 command 'gcc' failed with exit status

yum install gcc libffi-devel python-devel openssl-devel -y

 

Traceback (most recent call last):
  File "demo.py", line 14, in <module>
    import matplotlib.pyplot as plt
ImportError: No module named matplotlib.pyplot
[root@iZwz9drblb61bx0rc564tiZ PyramidBox]# pip install  matplotlib

 

ImportError: No module named Tkinter

yum install -y tkinter

yum install -y tk-devel

 

posted on 2019-08-17 23:10  代码风云  阅读(759)  评论(0编辑  收藏  举报

导航