V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
rebeccaMyKid
V2EX  ›  Python

pip 安装好的包怎么在 site-packages 找不到目录?

  •  
  •   rebeccaMyKid · Jul 20, 2017 · 2141 views
    This topic created in 3206 days ago, the information mentioned may be changed or developed.

    pip install webkit2png

    装的这个,装完后在 site-packages 下面只看到一个 egg-info 目录,没有看到源码目录。(´・_・`),求解

    9 replies    2017-07-21 09:14:44 +08:00
    julyclyde
        1
    julyclyde  
       Jul 20, 2017
    import 进来然后 help 一下
    Cooky
        2
    Cooky  
       Jul 20, 2017 via Android
    也可能会安装到个人用户文件夹里
    Cooky
        3
    Cooky  
       Jul 20, 2017 via Android
    import 完看看 __path__
    rebeccaMyKid
        4
    rebeccaMyKid  
    OP
       Jul 20, 2017
    @julyclyde pycharm import 都没提示
    rebeccaMyKid
        5
    rebeccaMyKid  
    OP
       Jul 20, 2017
    直接源码打包在项目里算了。。。也不大
    rebeccaMyKid
        6
    rebeccaMyKid  
    OP
       Jul 20, 2017
    @Cooky mac 下在哪里找
    xiaket
        7
    xiaket  
       Jul 20, 2017
    [xiaket@bragg ~]python -c "import requests; print(requests.__file__)"

    /usr/lib/python3.6/site-packages/requests/__init__.py
    KgM4gLtF0shViDH3
        8
    KgM4gLtF0shViDH3  
       Jul 20, 2017
    在不在 dist-packages 里面,或者直接 locate 一下
    rebeccaMyKid
        9
    rebeccaMyKid  
    OP
       Jul 21, 2017
    不要这个鬼东西了,我换 selenium 做了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5369 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 103ms · UTC 07:17 · PVG 15:17 · LAX 00:17 · JFK 03:17
    ♥ Do have faith in what you're doing.