简体   繁体   中英

Install Numpy in pydev(eclipse)

I am trying to install a package called 'numpy'. i have python setup in eclipse luna with the help of pydev. how do i install numpy in pydev.

tried putting numpy in site-packages folder. doesnt seem to work

In Eclipse, Goto Windows->Preferences Select PyDev->Interpreters->Python Interpreters

Then click on Manage with pip button, then you will see a new window like below, you just need to type your package and click Run/Press enter.

在此处输入图片说明

After this, Click Apply and OK, then Right click on Project then click on PyDev->Remove error markers .

Hope it works.

do you have pip installed with your python? How to install pip

Then if you have your path variable set you can simply type "pip install numpy" into command line.

download the required version of numpy from here http://sourceforge.net/projects/numpy/files/NumPy/1.9.2/ and the install directly ,it will run on eclipse automatically

If it does not solve your purpose use Pip:

pip install numpy

正确的方法是创建一个 virtualenv virtualenv ~/venvs/eclipse ,安装 numpy ( source ~/venv/eclipse/bin/activate;pip install numpy ),然后将 virtualenv 添加到 eclipse (参见https://www.rose-hulman .edu/class/csse/resources/Eclipse/eclipse-python-configuration.htm )

Pandas can be installed after install python in to your pc. to install pandas go to command prompt and type "pip install pandas" this command collecting packages related to pandas. After if it asking to upgrade pip or if pip is not recognized by the command prompt use this command: python -m pip install --upgrade pip.

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