I have Python 3.6 installed in my conda environment but I have to update it to the newer 3.10 version to be able to install newest versions of some packages. How can I update Python version in such a way that my already installed packages will also be updated if necessary?
Within the environment:
conda install python=3.10
... and as always read the docs
Related
Im new to programming and stuff and was looking to install python 3.9.6 using home-brew. To do that would I just have to type in brew install python#3.9 into the terminal, or is there some other way? Thanks!
You can't ensure a specific version 3.9.6 with brew package python#3.9. Homebrew is a package manage designed to get latest pacakge. python#3.9 will be kept updating to the latest patch version 3.9.x.
If you REALLY to stick with specific python version, choose conda (miniconda is preferred) or pyenv.
Am using ubuntu 20.04 LTS by default I have 3.8.2 as python version but when I issue sudo apt-get update its getting updating to 3.8.5 I need 3.8.2 as the version.How to uninstall 3.8.5 and install 3.8.2?
It might not directly answer your question, but it's an alternative solution. You could install something like pyenv which simplifies the process of handling different python versions. After installing it, pyenv install 3.8.2 && pyenv global 3.8.2 should do the trick.
I'm trying to create a Docker image with Conda and Python 3.6 installed. I have installed Anaconda 3 with the default Python 3.7. Then I used the following command to downgrade to Python 3.6:
conda install -y python=3.6
This results in Python 3.6 successfully installing, but when I subsequently execute conda --version, it gives me the error
'conda' module not found
I found that under python3.6/site-packages folder there are no Conda-related packages and instead all these packages are found under python3.7/site-packages.
It used to work before. Is there a way to get conda packaged under python3.6 folder?
Srikanth,
You should always try creating a new environment when you are working with some old version of any library.
conda create -n myenv python=3.4
If you want to install specific packages in this environment, you can use
conda install -n myenv tensorflow
Refer to this documentation for more information:
docs.conda.io
I have installed OpenCV 3.4.2 successfully by following the tutorial given here:
https://www.pyimagesearch.com/2015/07/20/install-opencv-3-0-and-python-3-4-on-ubuntu/
Now, I would like to update to openCV 4 or the latest stable version.
Do I need to uninstall 3.4.2 first?
If so, how should I uninstall it.
I am afraid to creating another virtual environment and installing version 4 or master package from github by following the same steps might create conflicts. Please advice.
Working on Ubuntu 16.04 LTS, python 3.5
For Python interface, I guess you can try something like pip install opencv-python==4.0.0.21. Note, you might need to run pip3 install opencv-python==4.0.0.21 depending upon your pip version.
I have installed Python 3 using Anaconda and I need to install the Swampy module. Could you please advice me on how to proceed?
I could not find a conda package for it. So use pip:
pip install swampy
works also with Anaconda installed Python.
The installer conda that comes with Anaconda knows about the newly installed package:
conda list
....
swampy 2.1.7 <pip>