Python 3.7 alpha version is out, but I haven't been able to find any post on how to update to python 3.7 using Anaconda - maybe they will wait for the official release? Any suggestions?
This can be installed via conda with the command conda install -c anaconda python=3.7 as per https://anaconda.org/anaconda/python.
Though not all packages support 3.7 yet, running conda update --all may resolve some dependency failures.
Python 3.7 is now available to be installed, but many packages have not been updated yet. As noted by another answer here, there is a GitHub issue tracking the progress of Anaconda building all the updated packages.
Until someone creates a conda package for Python 3.7, you can't install it. Unfortunately, something like 3500 packages show up in a search for "python" on Anaconda.org (https://anaconda.org/search?q=%22python%22) so I couldn't see if anyone has done that yet.
You might be able to build your own package, depending on what OS you want it for. You can start with the recipe that conda-forge uses to build Python: https://github.com/conda-forge/python-feedstock/
In the past, I think Continuum have generally waited until a stable release to push out packages for new Pythons, but I don't work there, so I don't know what their actual policy is.
To see just the Python releases, do conda search --full-name python.
The September 4th release for 3.7 recommends the following:
conda install python=3.7 anaconda=custom
If you want to create a new environment, they recommend:
conda create -n example_env numpy scipy pandas scikit-learn notebook
anaconda-navigator
conda activate example_env
run conda navigator, you can upgrade your packages easily in the friendly GUI
conda create -n py37 -c anaconda anaconda=5.3
seems to be working.
Related
How can I update Python in the Anaconda base environment? Is Python intended to be upgradable in the base environment at all, or should one completely remove and reinstall Anaconda? Any version will eventually go out of support, so there should be some solution.
What I have tried so far, and did not result in Python getting updated:
conda update --all
conda update python and conda update anaconda
conda install python=3.9 or conda install anaconda=2021.11 do not finish after an hour and a half.
mamba install python=3.9 results in "package python_abi-3.7-2_cp37m requires python 3.7.*, but none of the providers can be installed"
No other suggestion is put forward here.
I had a similar problem:
conda install anaconda=2022.10 resulted in unresolvable conflicts, conda install python=3.9 as well.
I finally managed to update by specifying both requirements within the same update command:
conda install anaconda=2022.10 python=3.9
In the base environment, run mamba update python --no-pin (of course, you could do it with conda, but then you're up for a long wait!).
Official documentation by Anaconda advises against upgrading to another major version of Python. It mentions the method you have already tried:
conda install python=3.9
but the process did not finish for you. This is in line with their documentation which says:
It is not recommended, rather it is preferable to create a new environment. The resolver has to work very hard to determine exactly which packages to upgrade.
Instead, you should create a new environment as suggested by the documentation and answers to this question.
conda create -n py39 python=3.9 anaconda
Open the Anaconda prompt by searching for it in the start menu or by running "anaconda-prompt" in the command prompt.
Run this command in the Anaconda prompt to update the base environment:
conda update --all
I'm trying to create a Python 2.7 virtual environment with Anaconda so I can download some packages that are not compatible with Python 3.4. I'm working in Conda version 4.2.13.
When I type the command conda create -n chemistry python=2.7 anaconda the whole thing freezes at the solving package specifications stage.
Does anyone know what causes this or how I can go about fixing it?
Today I faced the same snag. It got fixed after updating my Anaconda Navigator.
Updating your Anaconda Navigator may fix your issue, too.
Try this:
conda create -n chemistry python=2.7
The initial command you use will try to install a package named anaconda. If you want to specify the channel when installing packages,you can add -c <channel>.For example:
conda install -c conda-forge tqdm
Had same issue while I was trying to install some packages. I tried updating python then all seemed working. Try it out
conda install python
To be on the safe side, I was advised to keep to
$ conda update anaconda
However, some tutorials on internet recommends
$ conda update conda
$ conda update --all
The above two commands lead to the installation of custom packages. Will it cause anaconda to be unstable? Is it safer to simply keep to conda update anaconda?
Custom packages refer to packages with names that contain the word "custom". They do not belong to the standard anaconda package.
conda packages with version name of 'custom'
I am using Anaconda Python version 3.
Open "Command or Conda Prompt" and run:
conda update conda
conda update anaconda
It's a good idea to run both commands twice (one after the other) to be sure that all the basic files are updated.
This should put you back on the latest 'releases', which contains packages that are selected by the people at Continuum to work well together.
If you want the last version of each package run (this can lead to an unstable environment):
conda update --all
If you are implementing some projects and they depend on the previous version of some packages then running $ conda update --all will be disastrous. It may break some of the code from your project.
Running $ conda update anaconda will be a safe option because along with anaconda it will update all of the required dependencies to the required version.
What is a proven method for installing pydotplus for Python 3.5 on a 64-bit Windows(10) system? So far I haven't had any luck using conda or a number of other approaches.
It appears there are several viable options for both Linux Ubuntu and Windows for Python 2.7. Unfortunately it's necessary for me to use this particular configuration, so any suggestions would be greatly appreciated!
Try running anaconda prompt as 'administrator', then use:
conda install -c conda-forge pydotplus
What have you tried for conda? According to https://anaconda.org/conda-forge/pydotplus/files pydotplus is available from conda-forge for Windows x64 and Python 3.5. Typing
conda install -c conda-forge pydotplus
should work.
I had definitely tried that earlier but for some reason it wasn't working. However, thanks to your response I took another look at my configuration to see why that particular install package wasn't running properly.
I originally used Anaconda to install a dual Python 2.7/3.5 environment and while I was always able to run 3.5 without any issues in an IDE (Jupyter Notebook in this instance), the current environment had still automatically defaulted to 2.7. The quick way to check for this via the command window is:
C:\Users\Username\Anaconda\envs>conda env list
which should produce something like:
# conda environments:
#
py27 * C:\Users\Username\Anaconda\envs\py27
py35 C:\Users\Username\Anaconda\envs\py35
Note that there will be '*' next to the environment that is currently active. To switch, simply type 'activate' followed by the new desired environment name and the change should immediately be verified by the command prompt that is returned:
C:\Users\Username\Anaconda\envs>activate py35
(py35) C:\Users\Username\Anaconda\envs>
After making the environment change, I reran the conda install package for pydotplus that you mentioned:
conda install -c conda-forge pydotplus
and it worked perfectly!
Two other quick things to consider when installing pydotplus to ensure that it interacts correctly with GraphViz in your particular environment:
Make sure you're running the most up to date version of scikit-learn. More info is provided on the official website (http://scikit-learn.org/stable/install.html), including the quick update command: conda update scikit-learn
Verify that the GraphViz bin directory has been added to your User Path: (Why is pydot unable to find GraphViz's executables in Windows 8?)
I had the same issue. here what I did was,
first I ran the anaconda prompt as administrator and then give the command,
**conda install -c conda-forge pydotplus**
it worked for me well
I'm using python through Anaconda, and would like to use a new feature (http://scikit-learn.org/dev/modules/neural_networks_supervised.html) in scikit-learn that's currently only available in the development version 0.18.dev0.
However, doing the classical conda update doesn't seem to work, as conda doesn't list any dev packages. What would be the simplest way to install a development version into my Anaconda? (For what it's worth, I'm using 64-bit windows 7.)
You can only use conda to install a package if someone has built and made available binaries for the package. Some packages publish nightly builds that would allow this, but scikit-learn is not one of them.
To install the bleeding-edge version in one command, you could use pip; e.g.:
$ conda install pip
$ pip install git+git://github.com/scikit-learn/scikit-learn.git
but keep in mind that this requires compiling all the C extensions within the library, and so it will fail if your system is not set up for that.
I had scikit-learn 0.17 which did not have MLPClassifier. I just did a conda update like below:
conda update scikit-learn
conda takes care of updating all dependent packages and after the update it works!
You should build your own scikit-learn package on Anaconda. I did it in about 10 mins (repo)(package). The conda tutorial on how to build packages was helpful. There are probably more ways than one to do this, but I just downloaded the scikit-learn github repo, dropped it into a new repo, added a directory that housed my conda recipe, and then built the package from the recipe which pointed to the source code I just downloaded.