pip3没有安装在正确的文件夹中

时间:2017-07-25 16:09:21

标签: python

虽然python3希望模块位于/usr/local/lib/python3.4,但pip3会将它们安装在/usr/local/lib/python3.4/dist-packages中。这导致python3找不到pip3所说的软件包。

我尝试将/usr/local/lib/python3.4/dist-packages中的内容剪切并粘贴到/usr/local/lib/python3.4,但我最终会遇到奇怪的错误,例如:

Traceback (most recent call last):
  File "setup.py", line 13, in <module>
    from Cython.Build import cythonize
  File "/usr/local/lib/python3.4/Cython/Build/__init__.py", line 1, in <module>
    from .Dependencies import cythonize
  File "/usr/local/lib/python3.4/Cython/Build/Dependencies.py", line 51, in <module>
    from ..Compiler.Main import Context, CompilationOptions, default_options
  File "/usr/local/lib/python3.4/Cython/Compiler/Main.py", line 30, in <module>
    from .Symtab import ModuleScope
  File "/usr/local/lib/python3.4/Cython/Compiler/Symtab.py", line 18, in <module>
    from . import PyrexTypes
  File "/usr/local/lib/python3.4/Cython/Compiler/PyrexTypes.py", line 17, in <module>
    from .Code import UtilityCode, LazyUtilityCode, TempitaUtilityCode
ImportError: /usr/local/lib/python3.4/Cython/Compiler/Code.cpython-34m.so: undefined symbol: PyFPE_jbuf

我现在该怎么办?我是Linux Mint Cinnamon 64位。

[编辑]

这个问题一团糟,我仍然不知道以前发生了什么。我已经放弃了尝试让Python工作,因为我发现一个应用程序与我试图运行的Python应用程序做同样的事情。这是一种痛苦。

0 个答案:

没有答案