[英]Installing pylab on Mac OSX
I've looked at many questions on this issue, but none seem to help. 我已经看过许多有关此问题的问题,但似乎没有帮助。 I am new to Python and programming.
我是Python和编程新手。 I am not sure if installing matplotlib is what I need to do, but it was the link given in my textbook (I am self studying, so there's no one I can ask).
我不确定是否需要安装matplotlib,但这是我教科书中给出的链接(我正在自学,所以没有人问我)。
I downloaded the newest version of Python, 2.7.10, and then went to here and followed the instructions. 我下载了最新版本的Python 2.7.10,然后转到此处并按照说明进行操作。
In Terminal.app, 在Terminal.app中,
Installing collected packages: pip, wheel
Found existing installation: pip 6.1.1
Uninstalling pip-6.1.1:
Successfully uninstalled pip-6.1.1
Successfully installed pip-7.0.1 wheel-0.24.0
Yet when I run my code, which begins with: 但是,当我运行我的代码时,它以:
import pylab
from rcParamsSettings import *
import random
I end up getting 我最终得到
ImportError: No module named pylab
Can someone please help me figure this out? 有人可以帮我解决这个问题吗? I have no idea what to do now.
我不知道该怎么办。
看来您运行了(重新)安装pip
,但尚未运行使用pip
来安装matplotlib
,即:
pip install matplotlib
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.