虚拟环境无法使用matplotlib问题
在python虚拟环境下直接使用matplotlib会报错
Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.
安装完matplotlib的后会新建一个文件夹~/.matplotlib。
【虚拟环境无法使用matplotlib问题】在该文件夹里面新建一个matplotlibrc文件,往里面写:
backend: TkAgg
推荐阅读
- 人生感悟记#环境仪器宋庆国成长记#072
- 六步搭建ES6语法环境
- 解决SpringBoot引用别的模块无法注入的问题
- Android7.0|Android7.0 第三方应用无法访问私有库
- 无论你是谁,都有两件事,无法掌控
- 虚拟DOM-Diff算法详解
- 没有思考时
- iOS,打Framework静态库
- 2021.4.8日《我们为什么无法摆脱慢性疾病》常斌
- win10环境|win10环境 python3.6安装pycrypto-2.6.1的问题