Python Forum
Python 3.8 or 3.? Trouble installing packages
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python 3.8 or 3.? Trouble installing packages
#1
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.
Reply
#2
If you use pyenv and virtual environments you can eliminate this problem. See: https://python-forum.io/Thread-pyenv-Sim...Management
Reply
#3
Thanks. I just glanced over that and will look through it more and try to understand it, but just from glancing at it I did not understand all of the sudo stuff going on there.

I did this multiple times before and pip would install packages so I am so lost as to why I am now having so much trouble. I don't understand why I can't just do things the normal way to get packages up and going for me again.
Reply
#4
pip will always install packages if not already installed, the question is where will it install?

there is one pip script for each version of python.
which version of pip is active is dependent of which version python is active.
To complicate a bit more, there is pip and pip3
pip3 will always work with python 3

from command line, python -V will give active python version
pip -V will give pip version along with the python version it's paired with.

example on my system:
(venv) Flask$ python -V
Python 3.8.0

(venv) Flask$ pip -V
pip 19.2.3 from ... python3.8/site-packages/pip (python 3.8)
you can see that pip and python versions are matched (python 3.8)

if you install pyenv, and use virtual environment they will always be properly paired.
Reply
#5
I always wait for a couple of months to install a new version. Some modules require more work. However, virtual env. should be safe to try what you want. As @Larz60+ said.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#6
Do you use Linux which distro or do use Windows?
Post exactly what you use.
dn237 Wrote: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
This seems strange to me if you use Linux.

dn237 Wrote:Are packages such as time, hashlib, hmac, requests, pip, and maybe a few others working properly in Python 3.8?
Here there is a mix time,hashlib,hmac is in standard library.
requests is 3-party module install with pip install requests .
pip(package manager for Python) is a build in part of all newer Python version.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Trouble with installing python domingo251 2 605 Sep-23-2023, 12:03 AM
Last Post: ICanIBB
  Installing python packages in a virtual environment Led_Zeppelin 1 775 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 849 Jul-15-2023, 11:32 AM
Last Post: snippsat
  Having trouble installing scikit-learn via VSC and pulling my hair out pythonturtle 1 768 Feb-07-2023, 02:23 AM
Last Post: Larz60+
  installing prospector and updating anaconda packages amir 2 999 Dec-24-2022, 06:13 AM
Last Post: amir
Question Trouble installing modules/libraries and getting Notepad++ to show cyrillic letters Dragiev 6 2,272 Jul-24-2022, 12:55 PM
Last Post: Dragiev
  Installing Modules / packages Oshadha 1 1,706 Feb-05-2021, 08:04 PM
Last Post: Jeff900
  How to create local copies of Python packages so they do not have to be downloaded okhajut 3 2,038 Sep-29-2020, 02:22 PM
Last Post: buran
  python interpreter won't import packages greenpy 1 1,984 Sep-11-2020, 07:47 PM
Last Post: buran
  Conversion of Oracle PL/SQL(packages, functions, procedures) to python modules. DivyaKumar 2 6,519 Jul-09-2020, 04:46 PM
Last Post: srikanth7482

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020