1.安装opencv
https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
C:\ProgramData\Anaconda3\Lib\site-packages>pip install opencv_python-3.3.1-cp36-cp36m-win_amd64.whl
Processing c:\programdata\anaconda3\lib\site-packages\opencv_python-3.3.1-cp36-cp36m-win_amd64.whl
Installing collected packages: opencv-python
Successfully installed opencv-python-3.3.1
把 opencv_python-3.3.1-cp36-cp36m-win_amd64.whl 复制到 C:\ProgramData\Anaconda3\Lib\site-packages 目录下
pygame-1.9.4-cp36-cp36m-win_amd64.whl
pygame-1.9.4-cp35-cp35m-win_amd64.whl
上面是别人装opencv的方法,用同样的方法来装pygame!
结果说在python 中装了,pycharm不给装!!!!!
删除前面装的,重新在anaconda下面装,
但是在TensorFlow还是没有!!
最后发现文件安装包在3个环境中都可以安装,1:python中
2:anaconda\Lib\site-packages
3:anaconda\envs\tensorflow\Lib\site-packages
决定了要给tensorflow装包,要么在pycharm中,或者anaconda prompt。
activate tensorflow 然后将下载的包放在C:\Users\Administrator下,就安装成功了