Pip installs but module is not found

前端 未结 1 579
庸人自扰
庸人自扰 2021-01-22 12:27

I am trying to install Exscript from github.

pip install -e \'git+git://github.com/knipknap/exscript.git#egg=Exscript\'
...
Successfully installed Exscript
Clean         


        
1条回答
  •  迷失自我
    2021-01-22 12:53

    The flag -e means "editable", and what happens behind the scenes is a symlink, and as I see, Exscript uses a directory named src, what is not seen a good practice[1].

    So, in order to solve your problem, you have two alternatives:

    1. Remove -e flag
    2. Change Exscript to get rid of src, and use another directory name

    Take a look at http://guide.python-distribute.org/creation.html#directory-layout and https://web.archive.org/web/20160601051350/https://pythonhosted.org/setuptools/setuptools.html#development-mode.

    [1]: the good practice is to have the directory as the same name as used when importing the package

    0 讨论(0)
提交回复
热议问题