Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. (/thread-35852.html) |
Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. - Ezzat - Dec-23-2021 Hi all, I hope you are all doing well and in a good health. I'm developing my codes with Matlab and Visual studio. I'm a newbie in Python but I've been overwhelmed with the terrible burthens of the successive versions of Python and the consistent modules that I would be interested in. My PC is DELL Intel Core i5-6500 CPU @ 3.20GHz 3.19 GHz , 8 GB RAM, 1 TB HDD. I'm interested in developing codes for AI solutions, Computer visions. What is the shortest way to install a suitable version of Python, Numpy, and OpenCV? Should I first install pip or it is already installed with Python? Am I obliged to utilize versions like anaconda, or else? or I could depend on the Python only RE: Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. - Larz60+ - Dec-23-2021 I use pyenv see: https://python-forum.io/thread-15441.html?highlight=pyenv GitHub: https://github.com/pyenv/pyenv-virtualenv It will allow you to install as many versions of python as you wish, and then pick and choose a particular version to be loaded into a virtual environment for a specific project. This is great when you have versions that require a specific release of python. RE: Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. - snippsat - Dec-23-2021 Dell usually have Windows as OS,so i guess you use that? (Dec-23-2021, 09:30 AM)Ezzat Wrote: Should I first install pip or it is already installed with Python? pip comes with Python,so no install.(Dec-23-2021, 09:30 AM)Ezzat Wrote: Am I obliged to utilize versions like anaconda, or else? or I could depend on the Python onlyYou can choice both work fine there is also Miniconda Take a look Python 3.9/3.8 and pip installation under Windows Here a run all from command line( cmd ) or cmder as i use,command are the same in cmd.# Test Python C:\code λ python -V Python 3.10.0 # Test pip C:\code λ pip -V pip 21.2.3 from C:\Python310\lib\site-packages\pip (python 3.10) # Install NumPy C:\code λ pip install numpy --upgrade Collecting numpy Downloading numpy-1.21.5-cp310-cp310-win_amd64.whl (14.0 MB) |████████████████████████████████| 14.0 MB 234 kB/s Installing collected packages: numpy Successfully installed numpy-1.21.5 # Install Opencv C:\code λ pip install opencv-python Collecting opencv-python Downloading opencv_python-4.5.4.60-cp310-cp310-win_amd64.whl (35.1 MB) |████████████████████████████████| 35.1 MB 3.3 MB/s Requirement already satisfied: numpy>=1.21.2 in c:\python310\lib\site-packages (from opencv-python) (1.21.5) Installing collected packages: opencv-python Successfully installed opencv-python-4.5.4.60 # Test that it work C:\code λ python Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> >>> numpy.__version__ '1.21.5' >>> import cv2 >>> >>> cv2.__version__ '4.5.4' >>> exit() C:\code |