2016-07-28 81 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/ 
    

祝您好運!