How to install Python 3.6.6 on Mac? Can anyone tell me the Commit Identifier for Python 3.6.6? I can't find the link to download
You can find the latest release here -> https://www.python.org/downloads/
I suggest you use Python version 3.6.5 and install it using Anaconda. Go to this site and download Python 3.6. This will load python and many of the packages you may need to use to program in python. You also get the anaconda-navigator which is a nice package manager. Anaconda also makes it simple to use virtual environments. The anaconda documentation will walk you thru that as well as how to use the conda command. It's very good package for those who are new to python on a Mac.
Related
I have used python 3.8.13 as installed by Homebrew for years, mostly with jupyter-lab for coding in notebooks. Recently I ran brew to install a package and it looks like it installed python 3.10: brew list shows both python#3.8 and python#3.10 and running python3 from the command line gives me a 3.10 session, with no knowledge of my site-packages...
I either want to:
remove python 3.10 and continue using 3.8 as I was. python#3.8 would then be the python3 command as it was before.
or
change over to using python 3.10 and have all the site-packages installed when using 3.8 "come with". In particular, jupyter-lab needs to know about them in the 3.10 environment so my notebooks keep working.
Could someone help me with either of these? I'm not familiar enough with brew or python to clearly see how to do either to completion. Thanks so much.
I am following a guide to get NLTK working on my computer and part of the process is setting up a virtual environment so I can manage packages across projects.
Here is the guide I'm following: https://docs.python-guide.org/dev/virtualenvs/
I run into an issue when I reach the part where I'm supposed to "pipenv install requests". I get the message Installing...Failed to load paths: No Python at 'c:\users\[username]\appdata\local\programs\python\**python38**\python.exe'
I have python 3.9.2 installed so my path is c:\users\[username]\appdata\local\programs\python\**python39**\python.exe. Therefore, the python38 directory does not exist, nor does the path in my environment variables.
Do I need to install 3.8.8 to be able to follow this guide? If so, can I install 3.8.8 while 3.9.2 is installed as well, or Can I switch between the two versions? should I just uninstall 3.9.2 and work with 3.8.8?
Thank you.
You might need to specify a python version for pipenv, you can do that with: pipenv --version 3.9, you can read more about specifying the version here: https://pipenv.pypa.io/en/latest/basics/#specifying-versions-of-python
I am trying to get into deep learning. I installed Anaconda to use jupyter and generally not to care about installing all of those packages like matplotlib etc myself. But I cannot install tensorflow as it works only with Python 3.4, 3.5, or 3.6 but I have 3.7. After I read about it I installed python 3.6.8. I uninstalled Anaconda and installed it again, nothing changed. After that, I used this command
conda install python=3.6.8
to presumably install python 3.6.8 for it (I found this solution somewhere on the web). The command worked but didn't change anything. Please help
A better (recommended) alternative is to create a virtual environment of the desired Python version and then use that environment to run Tensorflow and other scripts.
To do that, you can follow the instructions given here.
BUT, if you don't want to create a separate environment, then conda install python=<version> should do.
OR (not recommended) you can download the "latest" Anaconda installer with your required Python version bundled.
Source
Sometime command is not working as expected I was also facing same issue when I
used this command.
conda install python=<version>
then I have changed the Python version with the help of anaconda Navigator. I have create new enviornment and follow below instruction=>
In Navigator, click the Environments tab, then click the Create button. The Create new environment dialog box appears.
In the Environment name field, type a descriptive name for your environment.
3.In the Packages list select “Python” and in the Python version list select the version you want to use.
4.Click the Create button.
5.Navigator creates the new environment and activates it, as shown by the highlighted green bar. All actions take place in the active environment.
for more details please go through this link =>
https://docs.anaconda.com/anaconda/navigator/tutorials/use-multiple-python-versions/
By default, the conda environment will use the python version 3.7, since you installed Anaconda with python3.7.
You would need to create a symbolic link to the new version of the python (in your case python3.6.8) using
ln -s ~/anaconda3/bin/<python3.6.8>
(you may need to replace 'python3.6.8' with the appropriate file name).
Another, better way would be to create a new environment in conda and then use python3.6.8 as you would like. Follow steps at https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands to create an environment.
For python3.6.8, run the following command:
conda create -n <myenv> python=3.6.8
(replace 'myenv' with the name of your new environment)
After that, activate the environment with :
conda activate <myenv>
This is a bug of the macOS 10.14.6. I degrade the python version from 3.7.4 to 3.7.0 in Anaconda and it works. Here I share my solution. I solve this question in other website. Check the answer by clicking here(https://www.udemy.com/course/the-python-mega-course/learn/lecture/4775342#questions/11049798).
You just can change the python version by creating a new environment in anaconda.
It will ask for the python version when you create an environment
The most pain-free approach that worked for me was to install the legacy version of Anaconda. If you want Python 3.6 as default, I recommand downloading Anaconda 5.2.0 which was the last version to use Python 3.6 in base environment as default. (Legacy versions can be found here.)
If you also want the latest version of Anaconda, there is an easy way. With Anaconda 5.2.0 installed, you can actually update to newer versions of Anaconda by
conda update anaconda
which will try to update all your packages except keepping Python at 3.6.x.
I tried downloading v2.7.x but it wasn't available. Almost all sites have updated to v3.x. If possible, please share the download link too.
I am using the Pycharm IDE and current interpreter is v3.4.
I want to shift to 2.7.1
How do I add the 2.7 interpreter.
Try the links here:
https://www.python.org/download/releases/2.7.1/
I was able to download.
you can use pyenv to mange multiple versions of python. details about how to install can be find in the link above.
after installation you can simply install python 2.7 like this.
pyenv install 2.7.8
to install python 3.4
pyenv install 3.4.0
to make global python to 2.7.8 at any time
pyenv global 2.7.8
You can download python2.7 from python.org and install it. you can then call
python2.7
on your terminal or cmd [after setting the env variable] to check if the installation was successful.
I tried to install GraphLab, but the result became like this:
AttributeError: module 'graphlab' has no attribute 'connect'
My python version is 3.6.1. And I also tried the code:
python -m pip install connect
But it didn't work.
Does anyone know how to solve this problems? Thanks!
This happens when Version in python on system is different from Anaconda. Anaconda Python is mixing in imports from the regular Python on the system. Make sure "which python" points to the right Python (whereever you installed Anaconda Python. And similarly "which pip" Otherwise you will want to run python (or pip) from [where ever you installed Anaconda]/bin/python. You can try the Dato Launcher which tries to set it all up for you.
Also, if you are not using Anaconda, on Graphlab support of installation, they recommended only two option for installation, one on Anaconda and the other on Virtualenv. I personally recommend you to use Anaconda for Graphlab as most of the development support and learning is totally based on Anaconda usage. You may follow this link to install Graphlab and Anaconda Here. I hope this helps.
Note: In installation of Anaconda, Python Version can be different like Python 2.7, but after installation of Anaconda, you can update to latest version of your choice.