2016-07-28 52 views
1

例如,如果使用PIP像这样安装后旋风:画中画冻结不显示包

pip install tornado 
Collecting tornado 
... 
Successfully installed backports-abc certifi singledispatch six tornado 

pip freeze列表不返回龙卷风包,它只是显示:

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: 

    '' 

怎么回事?

回答

0
  1. 我想重新安装PIP可以帮助你:

    pip install --upgrade pip 
    
  2. 要解决问题的easy_install添加/lib/python2.7/site-packages/到您的PYTHONPATH:

    export PYTHONPATH=$PYTHONPATH:/lib/python2.7/site-packages/ 
    

祝您好运!