Pydev Interpreter Problens - python

I am trying to start a new PyDev project using Eclipse and I am running into an issue finding the Interpreter.
It says that the project interpreter is not specified.
I am not sure where to go from here, did I mess up the installation?
I have messed around with it and gotten this screen to pop up
I believe part of the issue is that the PythonScripts Folder I am making is in my documents while the rest of my eclipse folders are under my User folder. Should I move the Python scripts folder into one of the following folders?
eclipse
eclipse-workspace
.eclipse

Related

Cannot Create an Interpreter in PyCharm

I downloaded Python 3.8.
I downloaded PyCharm Community Edition 2019.3.4. Saved it in new folder in the Desktop directory.
In PyCharm, when I click on File > New Project, I...
1.) Have the location set to C:\Users\User\Desktop\newProject
2.) Have New environment using set to Virtualenv
3.) Have Base interpreter set to C:\ProgramFiles\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64_qbz5n2kfra8p0\python.exe
I have a Windows 10 Home computer
When I click on the Create button, I get the attached error.
What can I do?
The error says it has access problem while accessing python.exe. Files inside WindowsApps are for systems use and cannot be accessed manually by users due to access permission.
Also you installation does not seem right as python.exe is present inside WindowsApps.
Please follow the simple installation guide for python. You might run into many other problems later.
I would suggest reinstalling python. It should go directly into C:/ drive or C:/ProgramFiles.

PyCharm doesn't detect interpreter

I'm new to programming and just started a course on Python. I want to use PyCharm, so I downloaded and intalled it (v. 4.5, community edition). I had previously installed Python 3.5 64-bit from python.org (I'm using Windows 10).
To start using PyCharm, I need a project interpreter, which I can select in the settings. As far as I'm concerned, the interpreter is "py.exe", but when I select it, I get this error message: "The selected file is not a valid home for Python SDK". I also tried to use every file whose name contained "python" or "py", and failed.
On every website and video I see, they select a file called "python.exe", but they're using Python 3.4 or a previous version. I checked that PyCharm supports 3.5 ("Initial support for Python 3.5").
Is there anything I'm doing wrong? What should I do to be able to use PyCharm?
All replies are appreciated. Thanks in advance.
file > new project settings > project Interpreter > click in the drop down and select 'show all' > click the '+' button >
Now, in the Virtualenv Environment tab under the New environment radio button, check the path in the 'Base interpreter:' field. For me, mine was set to an invalid path. Once I had corrected the path to point to python.exe I recreated my new project and PyCharm built the virtualenv.
For me there was a bit more too.... When creating the new project I expanded the drop down and had to verify the directory where the venv directory was being created. Once I had corrected the path here I had to click around a bit to get it to let me create the project.
I'm going to chaulk this up to a bug. I'm using Community edition.
When creating a project in PyCharm, if the interpret is not already selected, in the drop down menu under the projects "Location:", you can click the gear-looking icon to the right of the interpreter option, and click "Add Local"; then select the file location of the python.exe file that you have installed. It will probably be C:\Python35\Python.exe
I faced a Similar issue and was not able to find Python interpreter anywhere on the system.
The problem with it was that python was installed directly with default settings and there was no exe found in
C:\Python35\
and to solve this i tried uninstalling and reinstalling with custom settings and selecting allow for all users as well which did the trick and path was set correctly to
C:\Python35\python.exe.
After whichPycharm was able to detect the interpreter on this path.
PyCharm project interpreter problem Resolved
I installed anaconda python distribution (Anaconda3-5.0.1-Windows-x86_64.exe) from the anaconda website. https://anaconda.org/anaconda/python
What it actually did was it re-installed my Python3.6.3 (pertinent to mention I have windows10, with pyCharm community & python 3.5 already but with the interpreter problem and while installing anaconda I chose the following settings and disabled my antivirus before my anaconda installation):
selecting allow for all users
installation path was set correctly and (stored safely for future)
restart my Computer after installation.(not essential-but I did)
opened Anaconda & Jet brian pycharm
selected new project in PyCharm screen shot of my New project default Python interpreter location = C:\Users\Skboy\PycharmProjects\dani Interpreter = C:\Users\Skboy\AppData\Local\Programs\Python\Python36-32\python.exe
Wow! my pyCharm started working for me,
Resolution : Python6.3 re-installation with proper custom setting
make a python test test1.py program file to print "hello python test world"
Run
now my Python Interpreter(automatically -by default select) Python 3.6.3
edit configuration & check for interpreter
(C:\Users\user1\AppData\Local\Programs\Python\Python36-32\python.exe)
Run
success test Run
worth to mention Anaconda Jupyter is a web based can also be used in case novice user are still having problems
I have had the exact same problem and was unable to find the solution until just now. Hopefully this works for anyone that was struggling with it.
I went to the location of the Python 3.5 (32-Bit) in my C: Drive which it turns out is just a shortcut to the actual Python application, right click on it and select Open file location which should direct you to the application version of python - simply called 'python'. This is the .exe file that PyCharm was looking for to use as the interpreter.
Now go to the configure interpreter menu in Pycharm and type in the file location of the actual python application. To get to mine I had to go to AppData/Local/Programs/Python/Python35-32. Click on the python.exe file and it should work.
This is my first post here so if its formatted incorrectly or doesn't use the conventional terms - sorry. Let me know if the solution worked for anyone else with the problem or if I fluked it.
If you kept the default settings while installing python, Your project interpreter for PyCharm will be:
C:\Users\yourUserName\AppData\Local\Programs\Python\Python36\python.exe
Chose the above location as your project interpreter inside PyCharm.
Depending on which python version you have, it could be either Python36\python.exe or Python35\python.exe.
For me the following solution it worked:
My configuration:
Pycharm Community edition 2019.1.1
Anaconda distribution with python 3.7. Interpreter in standard location.
Problem:
Pycharm was not able to find python interpreter after reinstallation of anaconda distribution.
Solution:
- Make sure you run pycharm as admin (right click and run as admin). This was actually the critical step.
- Create new project (or open an existing one)
- Depending on the choice choose interpter or go to file > settings > project interpreter > choose small gear on rights side > add > on base interpreter choose the 3 dots > paste the location of the interpreter in the anaconda distribution.
Hope it helped someone. For me the blocking point was that for some reason pycharm was not launching with admin rights.
Blockquote

Pydev Package Explorer Issues

I have just installed Pydev on my existing copy of Eclipse for Java, running on OSX 10.7. When I make a new pydev package, I click away from the default directory for my java files and into one for python files. Once it is created, the project shows in the pydev package explorer window. However, once I close the package, it disappears from the pydev explorer window, but shows in the java explorer window (under java perspective). I can run the python project from the java perspective, but I want to try and keep my projects separated (infuriating).
Also, if I want to create a new pydev package, I have to first delete a .project file from the python project directory before I can create a new package.
I've been looking around for an answer to this problem for a while, and most talk about changing different filter settings in the explorers, but the filter settings for both pydev and java seems to indicate what I want it to do (key word seems).
Any help would be greatly appreciated. I've wasted too much time on this triviality. Thanks.

PyDev code analysis missing

I have installed Eclipse 3.7.2 from APT in Ubuntu 12.04, and installed PyDev in Eclipse. First, it warns unused import and unused wild import, but it no longer displays them today. However, it can display errors like missing parenthesis.
I created a new user, and installed PyDev using that user, problem still happens. How can I enable them for warnings? I have not change the code analysis settings.
list all operations could solve it here, for others convenience, and make this question closed
remove the project and recreated it, and this time the project dir is the the PYTHONPATH
remove your python interpretor settings, and set it again in eclipse - window preference - pydev -interpreter Python, refresh the pydev index
Project -> Properties -> PyDev -PYTHONPATH, all is empty. I then "add source folder"
I had the same problem. Went to project properties > pydev - PYTHONPATH, then setting the source folder did it for me !

Adding PyDev to Eclipse using the PyDev zip

I'm having a lot of trouble getting Eclipse to recognise PyDev when using the PyDev zip file. (I need to use the zip file as the Dev machine does not have internet access).
I have Eclipse installed and have downloaded the PyDev zip. I've Googled a fair bit and tried the following based on suggestions I found:-
Unzipped the .zip into ECLIPSE/helios/dropins and restarted eclipse.
Unzipped the .zip into ECLIPSE/helios/plugins and restarted eclipse.
Neither makes Python appear as a selection in the Eclipse, Window, Preferences.
Helios contains the executable eclipse file I use to load eclipse.
I'm using eclipse in Redhat linux.
One suggestion was to extract the zip over the eclipse plugins and features folders, but I don't see how that would work as the zip just produces a heap of files and no folders.
Any help to get this working would be great.
Just unzipping the Pydev zip file under C:\eclipse\dropins should be enough. So:
1) Unzip the zip file in C:\eclipse\dropins
2) Launch Eclipse
3) Test your installation: Go to Window -> Preferences -> PyDev
I just did this today and a far easier way to do it is to use the built-in installer. Go to Help -> Install New Software and then type pydev in the software filter. Since you already have the zip, if you extract it in the dropins folder, you'll skip the download portion and go straight to installing it.
I have been able to use the zip to install it manually before. I would extract its contents in the eclipse folder overwriting the features and plugins folder. I suggested this to a coworker earlier today and it didn't work for her. She had to download the newest version of eclipse for this method to work. She downloaded the classic version.
I've been playing with PyDev and Eclipse. Reinstalled Eclipse on a fresh machine and unzipped the standard PyDev over it (not the source version) and it worked fine. Did the same thing on the same machine having the problems but in a different location (/home) also worked fine. So it looks like a configuration problem on the machine not a PyDev/Eclipse issue. Sorry for the run around and thanks for the help. Dog.
For whatever it's worth, I was having the same problem running eclipse 3.6 on RHEL 6. When I ran eclipse as myself, I didn't get any PyDev options; however, when I ran eclipse as root, everything showed up. So permissions could be an issue fyi.
Open the eclipse and navigate in the below format of the menu bar of the eclispe
Window > Perspective > Open Perspective and select Pydev. As a result when next time you open eclipse you will be using it with python.Please follow the below screen shot in the link I am Using python 3.7 with eclipse photon ide.
Eclispe with Python

Categories