(Running this on Windows 11) I'm not sure if it's a bug or something I did wrong when updating python, but after updating Python to version 3.9.15 from the conda terminal, VSCode seems to not recognize it at least in the environments tab and when I do Shift+Ctrl+P.
What's weirder is that whenever I close and reopen VSCode, it shows the correct version for 5 seconds top-right before suddenly switching back to the older version. This isn't really a major issue since I know I'm using the up-to-date version, just a UI thing I noticed and wanted to see if there's a quick fix.
Related
I am new to Python and programming in general and have been using Spyder IDE from the Anaconda distribution for the past few months on Windows 10. It has been really simple and easy to download and use, and I can run all of my code within the IDE, so it has easy for me to begin learning Python.
I have now become more interested in Python and learning to code and am looking to try other text editors like VS Code or Sublime Text. I was wondering, however, if I need to download and install python to be able to run my code in a terminal or will my current Anaconda install be fine to run the code?
If I do need to download Python, will there be any conflicts by having Anaconda installed?
Sorry if I've used the wrong terminology or it's not clear.
No, anaconda downloads the python interpreter/compiler as apart of the package. But if you want to check to make sure, check your python version in the command line (here's a walkthrough on how to do that: https://blog.finxter.com/how-to-check-your-python-version/)
Also, if you did have it downloaded and re-downloaded python again, there wouldn't be any adverse effects. At worst it overwrites your original python file (which isn't a big deal considering they contain the exact same thing) and at best you'll update your version of python.
VS Code or Sublime Text will work fine for editing and running scripts, but are not required. Anaconda comes with the Spyder IDE.
The answer for you will be No.
if you already had anaconda installed in your laptop, once you open it up you will realized you can install Python within the software.
Anaconda will not only included Python, R also will be included.
Spider or Jupiter notebook can be used for edit your Python scripts.
I want to have a self-contained installation of python on a USB stick as I don't have enough room on my laptop to install anaconda etc.
This will also be useful as I use different machines that can't have software installed on them.
I know that multiple settings must be changed for this to work but there is very little information about this and I don't have any experience in changing program files/settings.
I already have both WinPython and PyCharm installed on the USB stick but I have not yet changed any settings.
I know this post is older, but I ran into this same question days ago.
I took a fresh USB stick and installed the latest Python onto it, instead of letting Python install to the default Windows directory. Then, I installed Pycharm the same way to my USB stick, with no issue.
Once I was inside of Pycharm, the bottom right hand corner of the screen said "No Interpreter." I clicked that and navigated my way to the flash drive and selected where Python was.
So far, I have had absolutely no issue using it and learning more about Python on the go!
During the last days, I have realized that the python icon created in the Dock when launching ipython is no longer launching (see example here). This is problematic if I want to select any other application and then come back to my plot, since I can't click on the icon in the Dock (so I have to minimize a lot of windows until I reach it). I am using python 3.5 and running on OS X El Capitan.
I don't know when the issue appeared exactly, and it is hard to tell its origin since I recently updated XCode and the python packages through conda, but I was wondering if anyone has any idea of why this could be happening.
If you manage your installations with using Homebrew, you can run brew linkapps in your terminal to recreate symlinks to them.
I have used Aptana Studio 3 for the programming of python for quite a while and never had problems. But after the update today (the version now is 3.5.0.201401092130-09012014213131), the editor stopped recognizing a lot of code (it marks functions like len, int, float and even things like None or True as errors).
I still can run all my programs without any problems so i figured that this must be an issue with an editor. Any ideas what the problem might be?
Not really a solution, but this workaround worked for me. After reverting to a previous version (3.4.1 in my case), the behavior I described above still persisted. But after I switched between the PyDev and the Web perspective a couple times, the editor went back to the normal behavior (the perspective switching didn't do the trick for version 3.5).
When I talk about version reverting, I don't mean the build in option (I tried it, but it just showed an error). I deleted the Aptana Studio 3 installation folder and downloaded the 3.4.1 version from this website.
This isn't my first time using Eclipse or installing PyDev but this is the first time it both succeeded and failed.
It succeeded because it installed, it shows up as being installed and installation went on fine without a problem.
It failed because nothing has shown up, there is no Python perspective, no PyDev views in the view list, no new projects under PyDev, no PyDev preferences. It is as if it is not actually installed at all.
The only thing I did differently is extract the latest eclipse to a folder called ~/eclipse and create a short cut to run it there (the latest Eclipse), usually I use apt-get to install eclipse, realise it's an old version (C++11 stuff missing) then upgrade and do this. Somehow PyDev is usually carried forward.
I'm not sure how it can list it as being installed but have this error, I'd appreciate any help you guys can offer.
I bet it's the problem of 3.x version of PyDev. It demands java 7.
2 solutions are possible:
Install java 7. re-run the Eclipse, Pydev should function well now. OR
Install last 2.x version of PyDev.
To do it
1) Remove PyDev : In Eclipse About window click Installation Details
button below. You will see controls for removing plug-ins.
2) Install 2.x version of PyDev:
Eclipse Help->Install New Software.
REMOVE CHECKBOX "Show only the latest version" located at the bottom of the dialog.
Choose Pydev update site from the list and in the appeared list of PyDev versions choose latest in 2.x branch.
The problem is really that sometimes even installing java 7, Eclipse does not get it.
In http://pydev.org/download.html, there's a section called: PyDev does not appear after install!
Try to follow it to see if it fixes your problem (i.e.: making Eclipse find java 7).
Another option would be using PyDev standalone (i.e.: LiClipse). Although it's commercial, it should come with all the requisites builtin (so, no hassles to install) and is updated whenever PyDev itself is updated.