LINUX.ORG.RU

Не получается закинуть правильно python'овский пакет с помощью pip в режиме editable

 , ,


0

1

В общем суть такая:

pip -vv install -e ./
Obtaining file:///home/deterok/testilo
  Running setup.py (path:/home/deterok/testilo/setup.py) egg_info for package from file:///home/deterok/testilo
    Running command python setup.py egg_info
  Source in /home/deterok/testilo has version 0.8, which satisfies requirement testilo==0.8 from file:///home/deterok/testilo
Installing collected packages: testilo
  Running setup.py develop for testilo
    Running command /home/deterok/tc/bin/python3.4 -c "import setuptools, tokenize; __file__='/home/deterok/testilo/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps
Successfully installed testilo-0.8
Cleaning up...

~/tc/bin/python3.4 -c "import testilo"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'testilo'
однако
pip -v install --upgrade ./
Processing /home/deterok/testilo
  Running setup.py (path:/tmp/pip-uhbzkb3j-build/setup.py) egg_info for package from file:///home/deterok/testilo
    Running command python setup.py egg_info
  Source in /tmp/pip-uhbzkb3j-build has version 0.8, which satisfies requirement testilo==0.8 from file:///home/deterok/testilo
Installing collected packages: testilo
  Found existing installation: testilo 0.8
    Uninstalling testilo-0.8:
      Removing file or directory /home/deterok/tc/lib64/python3.4/site-packages/testilo.egg-link
      Removing pth entries from /home/deterok/tc/lib/python3.4/site-packages/easy-install.pth:
      Removing entry: /home/deterok/testilo
      Successfully uninstalled testilo-0.8
  Running setup.py install for testilo
    Running command /home/deterok/tc/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-uhbzkb3j-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xe000g8i-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/deterok/tc/include/site/python3.4/testilo
Successfully installed testilo-0.8
Cleaning up...

~/tc/bin/python3.4 -c "import testilo"


Как решить проблему?

★★★★★

Последнее исправление: deterok (всего исправлений: 1)

Самое банальное: попробуй удалить пакет, затем поставить его в первом режиме и затем поискать в папке, где у тебя dist-packages.

squizduos
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.