Bottom Page

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
Quote
#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.
Quote
#3
I imagine you used pip to install it for Python 2. You ought to be able to use pip3 for Python 3.
Quote
#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
Quote
#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
Quote
#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
Quote
#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.)
Quote
#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
Quote
#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
Quote
#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
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Correct number wrong position func. albry 5 180 Jan-11-2019, 04:01 PM
Last Post: Larz60+
  Function not returning correct value ActualNoob 3 123 Jan-11-2019, 12:35 AM
Last Post: stullis
  Python version 3 that seems to be ignored by the system on a Raspberry Pi Discret68 3 154 Dec-28-2018, 06:42 PM
Last Post: Gribouillis
  I'm having trouble with an OOP version of Pickle functionality CodeWolf 2 92 Dec-19-2018, 05:41 PM
Last Post: CodeWolf
  How to comapare version UUIDs in python? swamyjrs 3 92 Dec-19-2018, 08:57 AM
Last Post: Gribouillis
  Python version compatability saisankalpj 5 197 Nov-29-2018, 06:12 PM
Last Post: nilamo
  Python 2.7 LooseVersion version comparison unexpectedly fails kwutzke 5 221 Nov-27-2018, 10:23 AM
Last Post: kwutzke
  [split] What version of python works on Windows Vista? tit 1 220 Oct-11-2018, 10:08 AM
Last Post: Larz60+
  The graphic/simulator is not loading in OOP version Caturix99 5 369 Sep-05-2018, 08:54 PM
Last Post: Gribouillis
  rpm version comparison in python asad 3 460 Jul-27-2018, 01:00 PM
Last Post: buran

Forum Jump:


Users browsing this thread: 1 Guest(s)