Python icon not showing anymore - python

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.

Related

Wrong conda python environment version showing on visual studio code

(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.

Getting Pip working in PyCharm on MacOS 10.14.5

I'm a python noob working through this intro to python: https://www.youtube.com/watch?v=rfscVS0vtbw. (definitely no need to watch this. Just adding it as context)
It's been going really well, except now I'm up to the part where I need to use pip, and despite having downloaded version 3.8 of Python, it keeps telling me that it doesn't even have pip installed.
I'm wondering if anyone could walk me through what the issue might be and how to actually start using pip in PyCharm.
I've tried downloading pip and installing it but even that doesn't seem to work. If anyone has an ultra-hand-holdy solution (very much for a noob) that would be appreciated.
I feel like the problem might be that I'm putting things in the wrong directories or something? Obviously there are some built-in versions on Python (2.x) already on the Mac so maybe they are interfering?
Thanks in advance for your help.
If I recall correctly, the version of Python that is used when you use the command python is the 2.x version, which doesn't have pip. So if you want to use python in terminal, you should call it as python3 and pip3 for using the pip command.
If you want to set a different Python version as the default one, you can do that. Here is a tutorial that can get you started with that (there's a plethora of other tutorials if this one isn't clear enough): https://opensource.com/article/19/5/python-3-default-mac
For using PyCharm specifically, you can setup the Python interpreter that is used with PyCharm by going to Preferences(or Settings) -> Project:[name of your project] -> Project Interpreter and then chose the desired Python Interpreter from the drop down menu. You can also create a virtual environment there by clicking on the cog icon and choosing Add. This is the preferred way and very convenient to keep installed packages local to your project. After you're done with that, open up PyCharms terminal (at the bottom of your PyCharm window) and you should be able to normally use pip with the command pip.
Alternatively, you can install Python packages in PyCharm using their built in package manager that you can find in the same window where you set your Python Interpreter. Below the dropdown menu you'll see a + sign, where you can click to add packages.

Is there an easy way to put my entire installation of PyCharm and WinPython on a USB stick?

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!

Eclipse - Installed PyDev and nothing changed

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.

Spyder keeps crashing in virtual python environment in OSX

I'm running an OSX Mountain Lion installation of Spyder (version 'spyder-2.2.0beta2.zip') inside a virtual environment setup using virtualenv and the Enthought academic build of Python. The setup loads up okay, but crashes whenever I am inside the 'save as' dialogue box, specifically as soon as I click on the 'Where:' dropdown box to select a folder. The terminal used to open Spyder then reports Segmentation fault: 11. Any ideas whats causing this?
(Spyder dev here) This is not our fault nor Enthought's one, but PySide's: the Python Qt bindings distributed by Enthought. Unfortunately they are not very stable (causing crashes like the one you described) and currently unmaintained, so we can't do anything about it.
Our recommended installation method on Mac is using our DMG (which uses PyQt4, a more stable set of bindings) and then switch your interpreter to the EPD's one. Or use MacPorts, if you feel brave enough :-)

Categories

Resources