#🔒 Pip installing to different Python version
10 messages · Page 1 of 1 (latest)
@round jasper
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
which python
/c/Users/salal/AppData/Local/Programs/Python/Python311/python
$ pip install opencv-python
Requirement already satisfied: opencv-python in c:\users\salal\appdata\local\pro
grams\python\python312\lib\site-packages (4.11.0.86)
Requirement already satisfied: numpy>=1.21.2 in c:\users\salal\appdata\local\pro
grams\python\python312\lib\site-packages (from opencv-python) (2.2.2)
[notice] A new release of pip is available: 24.0 -> 25.0
[notice] To update, run: C:\Users\salal\AppData\Local\Programs\Python\Python312\
python.exe -m pip install --upgrade pip
$ py decay.py
Traceback (most recent call last):
File "C:\Users\salal\projects\chromaphagi\decay.py", line 2, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'
aha, pip is in python 3.12
Solved by removing the newer version of python
!close
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.