Python Forum
numpynot associted with correct python version
Thread Rating:
  • 4 Vote(s) - 3.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
numpynot associted with correct python version
#1
When I tried to run a program using python3, I got an error that there is no package associated
with python named numpy.I remember putting one on.But according to the error it is associated with
a python 2.7.15 version. The default python then (during that numpy install) was python 2.7.15.

Yes, python 2.7.15 is on my laptop hard rive, but I compile (interpreted) with python 3.6.2.Python 2.7.15 is my default
python. If I type python -V it will be python 2.7.15.

There is no numpy associated with python 3.6.2, .So how do I change this setup so numpy is
associated with python 3.6.2, which is my preferred version for this code?

Any help appreciated.Thanks in advance.

Respectfully,

ErnestTBass
Reply
#2
Oops, I forgot to include the printout that shows the errors that I discussed
in my previous post.

I will take care of that now.

Respectfully,

ErnestTBass

PS.I am sorry I am new to this forum and i cannot figure out how to attached a file to a post.
Reply
#3
I imagine you used pip to install it for Python 2. You ought to be able to use pip3 for Python 3.
Reply
#4
Yes, that was my error. I have Python 3.5.2 and Python 3.6.2. Will pip3 work on both versions?

Any help appreciated. Thanks in advance.

Respectfully,

ErnestTBass
Reply
#5
ollecting numpy
Could not fetch URL https://pypi.python.org/simple/numpy/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping

Above is what I got when I typed

pip3 install numpy

please tell what i did wrong. I tried to upload the file and gave mean error. It did not like the file type. Thus I just copied
and pasted.

Any help appreciated. Thanks in advance.

Respectfully,

ErnestTBass
Reply
#6
Please I need an answer to this. It is stopping me from doing my python programming. I need the python 3 version of numpy.

As of now, I cannot install that numpy version.

I am using Ubuntu 16.05 64 bit.

Any help appreciated. Thanks in advance.


Respectfully,

ErnestTBass
Reply
#7
I'm not sure the solution to your problem, but I did some Googling and it sounds like you can either downgrade your pip version or potentially add these flags to your pip command:
Output:
--allow-all-external --allow-unverified
(I found the flags in this SO post.)
Reply
#8
Thank you I will give it a shot. It just seems to bean error that I have never seen before.

Respectfully,

ErnestTBass

That link that you gave me was format a MAC operating system. I will try anyway. I am stuck.

Thanks for your help.

Respectfully,

ErnestTBass
Reply
#9
I tried the option that requires two arguments.


Here is the output.

james@james-VirtualBox:~$ sudo pip3 install numpy --allow-all-external --allow-unverified
[sudo] password for james:
Sorry, try again.
[sudo] password for james:

Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...

--allow-unverified option requires 1 argument
james@james-VirtualBox:~$

I am not sure of the syntax, but the command above seemed to be the most successful,
even with the error.

Any help on this appreciated. My version of pip3 is 9.0.1.

Thanks in advance.

Respectfully,


ErnestTBass
Reply
#10
I think that I have an approach. I have three versions of python on my hard disk on my computer. Thy are 2.7.15, 3.5.2,and 3.6.3.

I am using 3.6.3.That was installed by me last week-end. Whenever,I try to install numpy or scipy, I get the error messages that
were shown in previous posts in this thread.

Maybe it is because of python 3.6.3. It is too new. I installed python 3.6.3 by downloading the tar file and the untaring it,then /confgiure, make, make install completed the install.

Then I must have made it the default python interpreter, and it is too new for any numpy or scipy.

So, I must remove it and make python 3.5.2 the default.That seems to be the standard python 3 and maybe I will not have as much trouble as I did before.

Does this sound plausible?

Maybe, I should just make python 3.5.2 my default python interpreter

Any other suggestion.This issue has got me stuck..

Respectfully,

ErnestTBass
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Selecting correct xlrd version Kithsiri 4 445 Feb-27-2024, 07:09 AM
Last Post: Kithsiri
  run part of a script with a different version of Python jdog 2 392 Jan-09-2024, 08:49 PM
Last Post: jdog
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 679 Oct-04-2023, 10:01 AM
Last Post: snippsat
  How to resolve version conflicts in Python? taeefnajib 0 873 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  Python venv and PIP version issue JanOlvegg 2 1,199 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Python Version upgrade nitinkukreja 1 852 Feb-04-2023, 10:27 PM
Last Post: Larz60+
  Can't update new python version on Pycharm GOKUUUU 6 3,700 Jul-23-2022, 09:24 PM
Last Post: GOKUUUU
  Building python (3.9.5) with different libexpat version (2.4.6) raghupcr 0 1,257 Feb-25-2022, 11:29 AM
Last Post: raghupcr
  Python keeps running the old version of the code quest 2 3,645 Jan-20-2022, 07:34 AM
Last Post: ThiefOfTime
  db migration(db version control) for python lubaz 2 2,699 May-30-2021, 01:36 PM
Last Post: lubaz

Forum Jump:

User Panel Messages

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