例如,如果您像这样使用pip安装Tornado后:
发生了什么问题?
pip install tornado
Collecting tornado
...
Successfully installed backports-abc certifi singledispatch six tornado
pip freeze
命令不会在列表中返回 tornado 包,它只会显示如下内容:
PyMySQL==0.7.2
当我运行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:
''
发生了什么问题?