Python配置matplotlib--no module named six matplotlib
2014-09-05 13:37
736 查看
Python 配置 matplotlib
1、安装numpy在 //www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
2、安装dateutil 地址同上
3、安装pyparsing 地址同上
4、安装scipy 然后把C:\Python27\Lib\site-packages\scipy\lib中的six.py six.pyc six.pyo三个文件拷贝到C:\Python27\Lib\site-packages目录下。
否则会报错:no module named six matplotlib
原因是"C:\Python27\lib\site-packages\dateutil\rrule.py"文件引入six,没有加six的路径。也可以在该文件引入six的地方加入six目录
应该是在第17行加入
sys.path.append("C:\Python27\Lib\site-packages\scipy\lib")
1、安装numpy在 //www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
2、安装dateutil 地址同上
3、安装pyparsing 地址同上
4、安装scipy 然后把C:\Python27\Lib\site-packages\scipy\lib中的six.py six.pyc six.pyo三个文件拷贝到C:\Python27\Lib\site-packages目录下。
否则会报错:no module named six matplotlib
原因是"C:\Python27\lib\site-packages\dateutil\rrule.py"文件引入six,没有加six的路径。也可以在该文件引入six的地方加入six目录
应该是在第17行加入
sys.path.append("C:\Python27\Lib\site-packages\scipy\lib")
相关文章推荐
- ImportError: No module named matplotlib.pyplot安装模块python
- matplotlib 使用时遇到的错误:ImportError: No module named six
- ImportError: No module named matplotlib.pyplot安装模块python
- ImportError: No module named matplotlib.pyplot
- ImportError: No module named matplotlib.pyplot
- ImportError: No module named matplotlib
- python导入包失败ModuleNotFoundError: No module named 'matplotlib.pyplot'; 'matplotlib' is not a package
- centos7上matplotlib 无法绘图,报错先ImportError: No module named Tkinter,后_tkinter.TclError: no display name
- No module named 'requests'、'PIL'以及'matplotlib'
- linux中ImportError: No module named matplotlib.pyplot
- 【Python】ModuleNotFoundError: No module named 'matplotlib.pyplot'
- OpenCV 4 Python高级配置—安装setuptools,matplotlib,six,dateutil,pyparsing 完整过程
- Pyinstaller打包运行exe报错 No module named matplotlib.backends.backend_tkagg
- Python Matplotlib AttributeError: 'module' object has no attribute 'popall'
- jupyter notebook import error: no module named 'matplotlib'
- ImportError: No module named matplotlib.pyplot
- ubuntu下virtualenv虚拟环境里python报错ImportError: No module named matplotlib.pyplot解决方案
- ImportError: No module named matplotlib.pyplot
- No module named matplotlib.pyplot
- ImportError:No module named matplotlib.pyplot