Reputation: 95
Brand new install of Ubuntu - in fact I have reinstalled so many times that I gave up - and installed this as a VM in VMware Workstation with a Snapshot taken right after a clean install fully patched and updated.
Heres what have done over 50 times over and over to no avail.
Ive installed PIP3, Numpy, Pycharm with the following process:
Sudo apt-get install default-jre
Sudo apt-get update
Sudo apt-get -y upgrade
sudo apt-get install python3-pip
Sudo apt-get install python3-numpy
Sudo pip3 install numpy
sudo apt-get update
sudo apt-get upgrade
Sudo apt install snapd
sudo snap install pycharm-community --classic
Customize Pycharm
*Do not import settings
UI Theme: Darcula
Featured plugins: None
Complete Customization
*Create New Project = NewProj
-> Project Interpreter: New Virtualenv environment
-> New environment using Virtualelv
-> Location: /home/bob/PycharmProjects/NewProj/venv
-> Base interpreter: /usr/bin/python3.5
-> Inherit global site-packages *NOT SELECTED*
-> Make available to all projects *NOT SELECTED*
->->->-> Creating Virtual Env....
->NewProj -> venv
Rightclick venv ->New ->python file: Lab1.py
Lab1.py:
import numpy as np
import time
import sys
S = range(1000)
print(sys.getsizeof(5) * len(S))
D = np.arange(1000)
print(D.size * D.itemsize)
O / P - 14000
RUN
*/home/bob/PycharmProjects/NewProj/venv/bin/python
/home/bob/PycharmProjects/NewProj/venv/lab1.py
Traceback (most recent call last):
File "/home/bob/PycharmProjects/NewProj/venv/lab1.py", line 1, in <module>
import numpy as np
ImportError: No module named 'numpy'
Process finished with exit code 1*
People have asked me about make sure that PYTHONPATH is configured correctly I have no clue what that is, how to check it or how to edit it, what to put in it.
This is a clean install. Shouldnt have to chmod or screw with file rights... etc..
Bout ready to FORMAT and install windows on top of this pile of schmeg.
If anyone can help I'll paypal 50 bucks over. At this point Im about to give up.
Upvotes: 1
Views: 897
Reputation: 95
Embarrassing... someone threw me a video link in youtube that nailed it. PFFFFFFT!!!!
https://www.youtube.com/watch?v=dxwB8KBLMcs
In a nutshell - in Pycharm -
File>Settings>Project:Name>Project Interpreter:
Click the + to add a package.
Find numpy in the list
Click OK - and close your way back out to your program....
I spent two days on this.... now I forgot what the hell I was actually trying to accomplish by installing all this crap.
Upvotes: 2