简体   繁体   中英

Eclipse Nsight and Anaconda using PyPi packages

I am using Eclipse (NSight Release 8.0) with PyDev (4.5.5) as my Python editor and I just started using Anaconda 3.6 , since I need some GPU capabilities of it (Numba).

I am trying to import a Python module named "Control" , a PyPi package. I installed it using conda skeleton, as described in here . When I try to import it using IDLE3 (which is configured for Anaconda), everything works fine, but when I try it inside Eclipse, I get the following error message:

import control ModuleNotFoundError: No module named 'control'

I tried many solution that I've found, for example, here and here , but none of them work.

How can I make Eclipse recognize the installed packages?

The solution is, instead of using conda skeleton, use

conda install pip
pip install control

Refresh (F5) and clean (Project -> Clean...) Eclipse and it is done! :-)

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