hey there,
i am using python 2.7 on ubuntu. the book am using is LearnPythonTheHardWay 3 edition (looks like a class name) .thanks Mr.Shaw for the book .
The Problem is in here:
when trying to uninstall my program it shows that is not possible using pip nor using the apt remove commands.
please check out the scree n shot and let me know about any solutions for this.
That’s super weird. I think @gpkesley might be onto something since cpuspeed is already a thing on most computers. Try finding your files with the find command and remove them manually, then create a virtual environment and do this again. This is why we use a venv in python.
it is a file , in the exercise we use the project skeleton to make a project/skeleton and inside skeleton we have some folders and files the one the instalation file is calld steup.py , and there is a folder called bin where i located my runable(has a hash bang at first line #! …/…) script called cpuspeed.py .
when i install the project using the setup file and check for what changes has happend to the usr\bin it shows a the file cpuspeed.py installed
actually the same thing in the virtual environment .
and after i navigate to the folder the file is installed in ( the bin usually ) and remove it , it will still show when i check pip list , but it is not directly executable by just typing the file name (cpuspeed.py).
(note : am not well in understanding the linux or any other os tree of making folders and putting other folders in them , i just started understanding that form your book espisialy the CLI crash course. just to know )
This is a totally bizarre error. Alright, you should rename this project. cpuspeed is clearly something used by the computer you’re using, and I’m guessing since this is ubuntu or Debian they have some apt .deb package that just happens to have a cpuspeed.py file and that’s stopping you.
Rename your project and it should work as expected.