I'm using Django and PyDev/Eclipse. I just installed django-treebeard with setup.py install
and it got installed in my site-packages directory C:\Python26\Lib\site-packages
. I can successfully import it in the python shell with import treebeard
. However PyDev complains that it cannot resolve it when I try to import it.
Unfortunately I have no experience with PyDev and I assumed that it would automatically pick up everything in the site-packages directory but apparently it does not. What am I missing?
thanks
Configure PyDevGo to Window → Preferences. In the Preferences window, expand PyDev and select Interpreter-Python. Click "New..." and type Python32 for the Interpreter name. For the Interpreter executable, browse to your copy of Python (C:\Program Files\Python32\python.exe), and press Open.
You can verify if it is correctly installed going to the menu 'window > preferences' and checking if there is a PyDev item under that.
it seems that you installed pydev with wrong version. remember check your java version(by typing java -version in console). if it says 1.6. X, then you should NOT check "Show only the latest versions of available softerware" option in the first popup window after "Help->Install New Software" clicked.
The Python "ModuleNotFoundError: No module named 'pip'" occurs when pip is not installed in our Python environment. To solve the error, install the module by running the python -m ensurepip --upgrade command on Linux or MacOS or py -m ensurepip --upgrade on Windows.
Pydev doesn't automatically rescan the site-packages folder. You need to go to Preferences-> Interpreter -> Python
and click apply to make it scan again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With