Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using install_requires
#1
I have created a test application which uses 'pillow'. I inserted a line in install.py:
install_requires=['pillow']
I then ran the following commands create the distribution and install it, they both worked:
python setup.py sdist
pip3 install dist/*.tar.gz
I now want to take another step and include 'hugin-tools', so I added it to install.py as above, and also put 'hugin-tools' in requirements.txt. I then ran the commands to create the distribution and install it, and the creation runs, but the installation errors:
Output:
chris@desktop:~/Snaps/cob$ pip3 install dist/*.tar.gz Processing ./dist/cob-0.tar.gz Collecting pillow (from cob==0) Using cached https://files.pythonhosted.org/packages/85/5e/e91792f198bbc5a0d7d3055ad552bc4062942d27eaf75c3e2783cf64eae5/Pillow-5.4.1-cp36-cp36m-manylinux1_x86_64.whl Collecting hugin-tools (from cob==0) Could not find a version that satisfies the requirement hugin-tools (from cob==0) (from versions: ) No matching distribution found for hugin-tools (from cob==0) chris@desktop:~/Snaps/cob$
Clearly it can't find hugin-tools, how should I correctly indicate to pip3 where to find it?
Reply


Messages In This Thread
Using install_requires - by ChrisOfBristol - Feb-04-2019, 07:57 PM
RE: Using install_requires - by buran - Feb-04-2019, 08:12 PM
RE: Using install_requires - by ChrisOfBristol - Feb-04-2019, 08:13 PM
RE: Using install_requires - by buran - Feb-04-2019, 08:20 PM
RE: Using install_requires - by ChrisOfBristol - Feb-04-2019, 08:40 PM
RE: Using install_requires - by buran - Feb-04-2019, 08:56 PM
RE: Using install_requires - by buran - Feb-04-2019, 09:12 PM
RE: Using install_requires - by ChrisOfBristol - Feb-04-2019, 10:43 PM
RE: Using install_requires - by buran - Feb-05-2019, 08:03 AM
RE: Using install_requires - by ChrisOfBristol - Feb-05-2019, 12:46 PM
RE: Using install_requires - by buran - Feb-05-2019, 12:54 PM
RE: Using install_requires - by ChrisOfBristol - Feb-05-2019, 04:59 PM
RE: Using install_requires - by ChrisOfBristol - Oct-13-2021, 07:00 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020