【发布时间】:2014-08-10 00:02:44
【问题描述】:
您好,我刚刚开始使用 python 并尝试安装一些必要的库。在 OS X 上使用 Python 3.4.1。我已经安装了 PyPDF2(假设成功),但我似乎无法使用这些工具:
sh-3.2# port select --list python
Available versions for python:
none
python25-apple
python26
python26-apple
python27-apple
python34 (active)
sh-3.2# pip install PyPDF2
Requirement already satisfied (use --upgrade to upgrade): PyPDF2 in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages
Cleaning up...
sh-3.2#
...
import PyPDF2
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import PyPDF2
ImportError: No module named 'PyPDF2'
>>>
我错过了一步吗?还是py3.4.1不支持PyPDF2?
【问题讨论】:
标签: python import installation pypdf