Python Error setup.py install | Sololearn: Learn to code for FREE!

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

3/21/2021 3:31:22 PM

LoCoding

11 Answers

New Answer

+1

Can you share screenshots of the directory and codes

+1

I wrote scripts content and directories tree: https://code.sololearn.com/ca77a23A7a00

+1

AKSHAY🇮🇳 [INACTIVE]

+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/

+1

LoCoding

+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.

+1

LoCoding There are many differences in Python 2.7 and Python 3.9. You have to see documentation according to your python version

+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.

0

Check your directory name.. Do you have same directory structure as in tutorial?? Your directory name and package name should be same

0

AKSHAY🇮🇳 I'm sure you do :( I'll try...

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.