good morning, I am following this guide https://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/quickstart.html to make public a simple python module I wrote. When from windows i write python setup.py install it tells me that the package 'testpython' packages = ['testpython'] does not exist. Why? (testpython replace "towelstuff".)
3/21/2021 3:31:22 PM
LoCoding11 Answers
New AnswerI see there is no __init__.py file in the subdirectory "towelstuff" This file is must to create a package. and LoCoding , I suggest you to look for better and more understandable resources like this https://realpython.com/pypi-publish-python-package/
Hi AKSHAY🇮🇳 At the moment i'm reading documentation to clarify doubts. I've seen wich if i install my personal package from Python 3.9 (within Linux) it works, in windows (Python 2.7) not.
LoCoding There are many differences in Python 2.7 and Python 3.9. You have to see documentation according to your python version
"There are many differences in Python 2.7 and Python 3.9." Obviously 😅 i've been stupid. I based with other project which work in Python 2.7 and 3.x so i thought that can be works without think the other project are developed to be compatible with difference versions.
Check your directory name.. Do you have same directory structure as in tutorial?? Your directory name and package name should be same
AKSHAY🇮🇳 [INACTIVE] doesn't work. It could be because the python version wich i used to install package is different? (2.x vs 3.9). I tried to replace path with absoulute path in packages field, but doesn't work.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message