相关疑难解决方法(0)

Matplotlib版本

让我的系统准备好自制软件并pip install matplotlib在成功安装numpy和scipy后使用,我正在成功安装.然后,跑步

$ python
Python 2.7.6 (default, Jan 30 2014, 20:19:23) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'1.1.1'
Run Code Online (Sandbox Code Playgroud)

这是一个非常过时的版本,没有我的程序运行它.我使用pip uninstall matplotlib并重做它,pip install 'the url for 1.3.1'它仍然读取版本1.1.1.有没有办法我可以手动删除所有python库,甚至是python本身,并从头开始重启?或者这是一个明显的解决方案吗?

编辑:我正在运行Mac OS X版本10.9.我刚刚通过macports重新安装了python 2.7和scipy,numpy和matplotlib.有没有一种非常基本的方法可以看到,当我import matplotlib从python环境中调用它时,在哪里?喜欢which在终端?我开始使用自制软件,但切换到macports以获得更多控制权.这可能是个问题吗?我需要完全删除自制软件吗?

我一开始确实收到了这条消息: Warning: Error parsing file /Applications/MacPorts/Python 2.7/Python Launcher.app/Contents/MacOS/Python Launcher: Error opening or reading file但是在运行$ sudo port -f deactivate python27 …

python matplotlib

14
推荐指数
2
解决办法
4万
查看次数

标签 统计

matplotlib ×1

python ×1