Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Troubles with numpy
#3
(Jun-08-2018, 09:21 AM)sylas Wrote: C:\Users\Sylvain\numpy\
numpy folder should not be there at all.
How you mange to get it there i don't know.
If check pip what dos it point to?
C:\>pip -V
pip 10.0.1 from c:\python36\lib\site-packages\pip (python 3.6)
Then pip install numpy will install to 3.6 at that location.
>>> import numpy
>>>
>>> numpy.__file__
'C:\\Python36\\lib\\site-packages\\numpy\\__init__.py'
Even if i make a virtual environment and install numpy is always in site-packages\numpy
# Make
C:\bar
λ python -m venv my_env

# cd in
C:\bar
λ cd my_env

# Activate
C:\bar\my_env
λ C:\bar\my_env\Scripts\Activate
(my_env) C:\bar\my_env

# Check pip
λ pip -V
pip 9.0.1 from c:\bar\my_env\lib\site-packages (python 3.6)

# Install
(my_env) C:\bar\my_env
λ pip install numpy
Collecting numpy
  Downloading https://files.pythonhosted.org/packages/6c/49/2bcf9d0484b33a6d7c5312121344a190d4a3d5f7826fcb3480cb62109073/numpy-1.14.4-cp36-none-win32.whl (9.8MB)
    100% |████████████████████████████████| 9.8MB 125kB/s
Installing collected packages: numpy
Successfully installed numpy-1.14.4

# Test
(my_env) C:\bar\my_env
λ python
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>
>>> numpy.__file__
'C:\\bar\\my_env\\lib\\site-packages\\numpy\\__init__.py'
Reply


Messages In This Thread
Troubles with numpy - by sylas - Jun-08-2018, 08:15 AM
RE: Troubles with numpy - by sylas - Jun-08-2018, 09:21 AM
RE: Troubles with numpy - by snippsat - Jun-08-2018, 04:14 PM
RE: Troubles with numpy - by sylas - Jun-08-2018, 04:36 PM
RE: Troubles with numpy - by snippsat - Jun-08-2018, 04:55 PM
RE: Troubles with numpy - by sylas - Jun-08-2018, 05:06 PM
RE: Troubles with numpy - by snippsat - Jun-08-2018, 05:37 PM
RE: Troubles with numpy - by sylas - Jun-08-2018, 05:40 PM
RE: Troubles with numpy - by snippsat - Jun-08-2018, 05:59 PM
RE: Troubles with numpy - by sylas - Jun-09-2018, 04:05 AM
RE: Troubles with numpy - by sylas - Jun-09-2018, 06:08 AM
RE: Troubles with numpy - by sylas - Jun-09-2018, 01:12 PM
RE: Troubles with numpy - by Larz60+ - Jun-09-2018, 01:16 PM
RE: Troubles with numpy - by sylas - Jun-09-2018, 01:31 PM
RE: Troubles with numpy - by snippsat - Jun-09-2018, 02:00 PM
RE: Troubles with numpy - by sylas - Jun-09-2018, 04:36 PM
RE: Troubles with numpy - by buran - Jun-09-2018, 04:55 PM
RE: Troubles with numpy - by snippsat - Jun-09-2018, 05:16 PM
RE: Troubles with numpy - by sylas - Jun-09-2018, 05:21 PM
RE: Troubles with numpy - by snippsat - Jun-09-2018, 05:27 PM
RE: Troubles with numpy - by snippsat - Jun-09-2018, 05:56 PM
RE: Troubles with numpy - by sylas - Jun-09-2018, 06:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 710 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,675 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 3,030 Apr-09-2019, 04:54 PM
Last Post: PhysChem

Forum Jump:

User Panel Messages

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