0

Python Error setup.py install

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".)

21st Mar 2021, 3:31 PM
LoCoding
LoCoding - avatar
11 Answers
+ 1
Can you share screenshots of the directory and codes
19th Apr 2021, 6:43 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
I wrote scripts content and directories tree: https://code.sololearn.com/ca77a23A7a00
26th Apr 2021, 9:19 PM
LoCoding
LoCoding - avatar
+ 1
I 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/
8th May 2021, 11:27 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
25th May 2021, 11:14 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
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.
5th Jun 2021, 7:43 AM
LoCoding
LoCoding - avatar
+ 1
LoCoding There are many differences in Python 2.7 and Python 3.9. You have to see documentation according to your python version
5th Jun 2021, 7:55 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
"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.
6th Jun 2021, 12:31 PM
LoCoding
LoCoding - avatar
0
Check your directory name.. Do you have same directory structure as in tutorial?? Your directory name and package name should be same
28th Mar 2021, 3:46 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
0
AKSHAY🇮🇳 I'm sure you do :( I'll try...
10th Apr 2021, 5:30 PM
LoCoding
LoCoding - avatar
0
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.
18th Apr 2021, 8:10 PM
LoCoding
LoCoding - avatar
8th May 2021, 9:42 AM
LoCoding
LoCoding - avatar