Python Forum
Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV.
#3
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 only
You 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
Reply


Messages In This Thread
RE: Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. - by snippsat - Dec-23-2021, 12:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with using opencv in python Raunak1023984765 21 1,407 Feb-21-2024, 04:25 PM
Last Post: Pedroski55
  run part of a script with a different version of Python jdog 2 392 Jan-09-2024, 08:49 PM
Last Post: jdog
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 679 Oct-04-2023, 10:01 AM
Last Post: snippsat
  Installing Older Version Of Numpy & Pandas knight2000 6 1,646 Aug-30-2023, 10:58 AM
Last Post: knight2000
  How to resolve version conflicts in Python? taeefnajib 0 873 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  Python venv and PIP version issue JanOlvegg 2 1,199 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Python Version upgrade nitinkukreja 1 852 Feb-04-2023, 10:27 PM
Last Post: Larz60+
  Can't update new python version on Pycharm GOKUUUU 6 3,700 Jul-23-2022, 09:24 PM
Last Post: GOKUUUU
  Building python (3.9.5) with different libexpat version (2.4.6) raghupcr 0 1,257 Feb-25-2022, 11:29 AM
Last Post: raghupcr
  Python keeps running the old version of the code quest 2 3,645 Jan-20-2022, 07:34 AM
Last Post: ThiefOfTime

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020