例如,如果在使用 pip 安装 Tornado 之后,如下所示:
pip install tornado
Collecting tornado
...
Successfully installed backports-abc certifi singledispatch six tornado
Run Code Online (Sandbox Code Playgroud)
pip freeze
不返回列表中的龙卷风包,它只显示:
PyMySQL==0.7.2
Run Code Online (Sandbox Code Playgroud)
当我运行easy_install
它时也返回:
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/lib/python2.7/site-packages/
and your PYTHONPATH environment variable currently contains:
''
Run Code Online (Sandbox Code Playgroud)
出了什么问题?