Python Forum
when package built, requirements not installed - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: when package built, requirements not installed (/thread-39744.html)



when package built, requirements not installed - sabuzaki - Apr-07-2023

Hello,

I'm new to packaging, but using setup.py file. I have included this line [1] in setup.py, built the package using command [2], uploaded to test pypi database using this [3] then installed the package using pip command, but when executing the script, it still says no module "netifaces" found (and no others).

Any direction where to troubleshoot this would be awsome!

thanks in advance.

[1]
install_requires=["graphviz", "netifaces", "numpy", "tabulate","pygraphviz"],

[2]
python3 -m build

[3]
python3 -m twine upload --repository testpypi dist/*


RE: when package built, requirements not installed - sabuzaki - Apr-07-2023

can be closed. Problem was I had requirements there but in test pypi website some requirementes were failiing to be found and eventually older version was installed which did not have requirements. So I'm using this [1] command which installs all the requirements.


[1]
pip install -i https://test.pypi.org/simple/ <app name> --extra-index-url https://pypi.org/simple poirot