ImportError: No module named bottle

后端 未结 5 1609
清酒与你
清酒与你 2021-01-11 18:26
$ sudo pip install bottle 
Downloading/unpacking bottle
  Downloading bottle-0.10.7.tar.gz (55Kb): 55Kb downloaded
  Running setup.py egg_info for package bottle
Ins         


        
5条回答
  •  长发绾君心
    2021-01-11 19:19

    I know I'm late to the party - but I was having a problem using python command and my bottle.py module being located in my 3.x lib directory.

    I just tossed a symlink from bottle.py in my python3.x to my current 2.x directory as such:

    sudo ln -s ~/.local/lib/python3.5/site-packages/bottle.py /usr/local/lib/python2.7/dist-packages/bottle.py
    

    Obviously change the version numbers to match your directory structure!

提交回复
热议问题