I am trying to install Exscript from github.
pip install -e 'git+git://github.com/knipknap/exscript.git#egg=Exscript'
...
Successfully installed Exscript
Cleaning up..
When i try to load it, python is not able to find it:
python2.7 -c "import Exscript"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named Exscript
But, when i try to install it in the same virtualenv with setup.py it installs and loads successfully.
What am i doing wrong?
The flag
-e
means "editable", and what happens behind the scenes is a symlink, and as I see,Exscript
uses a directory namedsrc
, what is not seen a good practice[1].So, in order to solve your problem, you have two alternatives:
-e
flagsrc
, and use another directory nameTake 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