Oct-24-2019, 05:45 PM
I have been working on writing a trading bot in PyCharm lately. I was getting close to finishing then Python and/or Pip updated so after seeing a suggestion in the command prompt and/or PyCharm to update to the latest version, I finally did.
I had put off updating because I was afraid things would not work together properly if I updated, and sure enough that is what happened but far worse than I imagined because I have now been trying to reinstall Python and some packages for DAYS. I absolutely cannot figure out what the problem is.
What version of Python should I be using right now? Any version that I have tried seems to give me the same exact problems.
Are packages such as time, hashlib, hmac, requests, pip, and maybe a few others working properly in Python 3.8?
If not which version should I install?
Once I install that version of Python, what does Python and/or Pip need to be able to install packages?
I get errors such as "No distribution found", something like "exited with error code 1" or "0", and a couple of other things.
My suspicion is there is either an extra or missing needed file or something on/ not on my computer, but I have no idea what that would be as nothing I have found explains what is needed and where, and what extra could cause problems.
I am pretty certain that PyCharm is not the issue, and I am pretty certain the interpreter for the project is pointing where it should be, and there is typically only one interpreter option anyway. And every time I have looked to see if I needed to add a new interpreter the file was correct to begin with.
Pip is installed but like I said I can't get it to actually install packages.
Help is greatly appreciated as I have been trying to figure this out for literally around TWO DAYS now.
I uninstalled Python 3.6, Python 3.8, and PyCharm, and reinstalled Python 3.8 just now.
I tried to check to see if Pip is already installed or not by typing:
pip
pip -V
pip --version
pip3 -V
None of that worked so I am assuming pip is not installed with 3.8 even though I could swear it came installed with some version. so I guess I'm going to try to install pip now and see how that goes.
I tried those different things above because I swear I have seen them all suggested different places but I have no idea why anyone would change around things like that going from version to new version or whatever other change caused that.
Nothing I have seen in my life is as disjointed and unorganized as programming. Either that or it's all only explained as if everyone already comes into learning any of it Python or whatever else, already with years of computer science education.
Just tried:
python get-pip.py
some youtube video showed doing that but I got invalid syntax back
Also just tried get-pip.py and get pip.py but no luck there either
Tried sudo easy_install pip
worked for some guy on youtube in python 2.7.3 or some version close to that but as I already knew it didn't work for me and I have no idea why programmers are using 50,000 different ways that don't all always work to do the same thing
Followed another video.
Went to pip-installer.org and downloaded get-pip.py under their installation page like another video instructed to do. Saved it to my desktop just like the guy in the video did.
Ran pip and got the same output he got.
Installed requests like he did and got the same.
Then tried to install time and got this:
ERROR: could not find a version that satisfies the requirement time (from versions none)
ERROR: No matching distribution found for time
WHY?!?!!?!?! WHY won't this work?! Why will certain packages install but not others?! This is getting on my nerves extremely badly. I can't take like a month just to get Python, pip, PyCharm, and some packages all installed and going.
This is pure craziness. Installing an application to just write and run code on should NOT be next to impossible.
I had put off updating because I was afraid things would not work together properly if I updated, and sure enough that is what happened but far worse than I imagined because I have now been trying to reinstall Python and some packages for DAYS. I absolutely cannot figure out what the problem is.
What version of Python should I be using right now? Any version that I have tried seems to give me the same exact problems.
Are packages such as time, hashlib, hmac, requests, pip, and maybe a few others working properly in Python 3.8?
If not which version should I install?
Once I install that version of Python, what does Python and/or Pip need to be able to install packages?
I get errors such as "No distribution found", something like "exited with error code 1" or "0", and a couple of other things.
My suspicion is there is either an extra or missing needed file or something on/ not on my computer, but I have no idea what that would be as nothing I have found explains what is needed and where, and what extra could cause problems.
I am pretty certain that PyCharm is not the issue, and I am pretty certain the interpreter for the project is pointing where it should be, and there is typically only one interpreter option anyway. And every time I have looked to see if I needed to add a new interpreter the file was correct to begin with.
Pip is installed but like I said I can't get it to actually install packages.
Help is greatly appreciated as I have been trying to figure this out for literally around TWO DAYS now.
I uninstalled Python 3.6, Python 3.8, and PyCharm, and reinstalled Python 3.8 just now.
I tried to check to see if Pip is already installed or not by typing:
pip
pip -V
pip --version
pip3 -V
None of that worked so I am assuming pip is not installed with 3.8 even though I could swear it came installed with some version. so I guess I'm going to try to install pip now and see how that goes.
I tried those different things above because I swear I have seen them all suggested different places but I have no idea why anyone would change around things like that going from version to new version or whatever other change caused that.
Nothing I have seen in my life is as disjointed and unorganized as programming. Either that or it's all only explained as if everyone already comes into learning any of it Python or whatever else, already with years of computer science education.
Just tried:
python get-pip.py
some youtube video showed doing that but I got invalid syntax back
Also just tried get-pip.py and get pip.py but no luck there either
Tried sudo easy_install pip
worked for some guy on youtube in python 2.7.3 or some version close to that but as I already knew it didn't work for me and I have no idea why programmers are using 50,000 different ways that don't all always work to do the same thing
Followed another video.
Went to pip-installer.org and downloaded get-pip.py under their installation page like another video instructed to do. Saved it to my desktop just like the guy in the video did.
Ran pip and got the same output he got.
Installed requests like he did and got the same.
Then tried to install time and got this:
ERROR: could not find a version that satisfies the requirement time (from versions none)
ERROR: No matching distribution found for time
WHY?!?!!?!?! WHY won't this work?! Why will certain packages install but not others?! This is getting on my nerves extremely badly. I can't take like a month just to get Python, pip, PyCharm, and some packages all installed and going.
This is pure craziness. Installing an application to just write and run code on should NOT be next to impossible.