Python Forum
Installing Numpy multiple locations
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing Numpy multiple locations
#1
I am a new user to python so please be kind. I am using python 3 on ubuntu (Linux).

I installed numpy under …/APP1/.env/lib/python3.6/site-packages/

it works when execute APP1.

When I run another unrelated APP2 that needs numpy outside of the .env it says the module cannot be found.

It seems to me like these files (numpy) only work in the env. How do I install it in a way so that it is universally usable by any app that needs it? Also doing it in a way that the first app will not be tampered with and will still be able to locate it.

Please help!
Reply
#2
(Dec-19-2019, 11:45 PM)dwhe Wrote: How do I install it in a way so that it is universally usable by any app that needs it?
In a terminal / command line:
pip install numpy
You may need to use pip3 or this:
python3 -m pip install numpy
Reply
#3
But will this install it in 2 places? IE twice the memory space? I am running on a virtual machine where space is limited
Reply
#4
Yes, if you installed it some other way, you'll have a second copy. Why the worry though? Why not delete the weird one and just use pip?
Reply
#5
Because if I delete the weird one then the APP1 may not know where to look for the new one if it is in an env? Am I thinking the right way about that?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to save to multiple locations during save cubangt 1 554 Oct-23-2023, 10:16 PM
Last Post: deanhystad
  Installing Older Version Of Numpy & Pandas knight2000 6 1,792 Aug-30-2023, 10:58 AM
Last Post: knight2000
  Using locationtagger to extract locations found in a specific country/region lord_of_cinder 1 1,274 Oct-04-2022, 12:46 AM
Last Post: Larz60+
  How to find employees clocked in at two different locations ToussaintOps 0 802 Aug-19-2022, 05:51 PM
Last Post: ToussaintOps
  how to join by stack multiple types in numpy arrays caro 1 1,145 Jun-20-2022, 05:02 PM
Last Post: deanhystad
  Installing Numpy on Raspberry Pi koepjo 3 20,950 Apr-04-2020, 09:49 AM
Last Post: snippsat
  transfering files between server locations using ftplib katesfb 1 2,002 Nov-11-2019, 12:24 AM
Last Post: katesfb
  Problem installing numpy and matplotlib achondrite 1 3,130 Jan-16-2019, 11:43 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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