I'm having a little bit of trouble with Pycharm Community recognizing Anaconda 3.6.0. The interpreter works and runs programs, however, it doesn't seem to be reading the code intuitively and providing any of the suggestive features (autocompletion) or colouring for the different text (i.e all text is just grey). So it's more like a featureless text editor that can run code then a sophisticated IDE at the moment.
When using standard Python 2.7 as the interpreter it has all of the normal features that should be appearing. I thought Pycharm had full support for Anaconda and should have these features. Does anyone have any suggestions as to what to do? Thanks!
I hope you are making sure to select the right interpreter for both the project as well as general interpreter in File->settings. I have installed anaconda for both python 2.7 and python 3. I specify the path of the anaconda version I want to use for the current project and it works fine.
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 have been trying to get sublime to stop outlining my comments with python but am having a hard time. I am not sure if it is one of the packages I downloaded, or the language I am using. It makes it difficult to read whats in the comments sometimes. I am new to programming and this text editor and would appreciate any help, thanks! Here's what it looks like
The packages I installed are anaconda, Djaneiro, Emmet, PyV8, requirementstxt, sidebarenhancements, sublimeLinter, and sublimeREPL.
Since you installed the anaconda package you need to add the following package setting:
"anaconda_linting":false
See the Anaconda Python IDE docs
There is people that doesn’t care about linting or they just use another plugin to do it, they can completely deactivate this feature setting the anaconda_linting as false in the anaconda or project configuration.
note: imports validation depends of anaconda linting handler so it will not work if anaconda linting is disabled
On Windows, how can I add a Python version to the Python Launcher? I have python 3.7 installed alongside 2.7. I've made sure that the PATH variable and the registry keys are correct. One thing I will say is that I can't see any other Python environment variables on my machine (such as PYTHONPATH), or either of the py.ini files descibed here.
If possible, I would like the solution to also work with python distribition, such as Anaconda.
This is the same question as py launcher does not find my Python 2.7, but none of the answers worked for me, so I trust I am allowed to ask again.
related:
How should I set the default Python version in Windows
I solved the problem by going to Control Panel -> Uninstall A Program, right clicking on "Python 2.7.15", clicking "change", and pressing "repair". No clue why I didn't try that first.
I don't know why after a year this suddenly became an issue, but I pip-installed requests and I got an import error when running from Sublime, but it worked fine in the terminal.
I dug a little and found that the terminal was running Python 2.7.3 from /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python (where requests worked) and Sublime was using 2.7.2 from /usr/bin/python. That's where my know-how ends, and this is an area I'm reluctant to fiddle with if I don't know what I'm doing. I'm using OSX 10.8.2. Any suggestions? Not even sure what to Google.
Since you are using a newer, non-system Python (which is a good idea), you need to tell Sublime Text 2 to use that Python. Although your shell $PATH was modified to include the location of the newer Python, Sublime Text doesn't know about that. See this answer for various ways to do that.
You need to start using virtualenv and virtualenvwrapper when developing. It gives you a sandboxed python environment for each of your projects.
I was led to this question/answer (by the above Ned Deily, no less) that solved everything. Hope it helps someone else! (Ned, would love to give you the karma, but at 26.7k it doesn't look like you're in dire need).
How to uninstall Python 2.7 on a Mac OS X 10.6.4?
Here is a screen where I should point the Wing IDE to my python files. I am using IronPython.
Am I assuming correctly that textbox one gets filled with ipy.exe ? (proper path provided)
What should be in the rest of the boxes ?
I do not know about your question in particular; however few weeks ago, Michael Foord published a guide for using WingIde with IronPython.
You can find it here: http://www.voidspace.org.uk/ironpython/wing-how-to.shtml
Wing IDE at the moment doesn't allow the debug mode with IronPython. You need to link the IDE to the CPython install. (Michael Foord words in the article http://www.voidspace.org.uk/ironpython/wing-how-to.shtml]1).
Wing IDE wouldn't run the shell while pointing at Python 3.1. I am unsure whether that is something I have done wrong or that the incompabilities aren't sorted out yet.
I have installed CPython implementation from Python download site.Python download
I have set the Python executable path to the python.exe that gets installed to your Python Install directory.
I have modified the enviroment variables and added the Python directory to the PATH variable.