简体   繁体   中英

How to install numpy in a user specified directory using conda command prompt

I am using numpy in a Package but since it was backdated I unistalled it and now trying to reinstall it in a specified path. But after installing it several times I can not figure out how to install it to the specified path since it only installed inside the miniconda3 directory but I need it in another directory

(base) C:\Users\AppData\Local\Programs\Python\Python38-32\Lib\site-packages>pip install numpy
Requirement already satisfied: numpy in c:\users\miniconda3\lib\site-packages (1.18.1)

I wanted to install it in C:\\Users\\AppData\\Local\\Programs\\Python\\Python38-32\\Lib\\site-packages but it was installed in c:\\users\\miniconda3\\lib\\site-packages

In that case when you have multiple python installed, select the path of the python.exe what you want to use along with the package. Then in the command prompt you have to install the package by the command

<PATH\python.exe> -m pip install numpy

This will work if you have pip installed previously.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM