Jun-08-2018, 04:14 PM
(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'