#πŸ”’ Hi im not a dev/scripter and if someone could help me whit the pip install pls

35 messages Β· Page 1 of 1 (latest)

proud bolt
#

.

hexed valleyBOT
#

@proud bolt

Python help channel opened

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.

proud bolt
#

the eror that i get when i try to instal this
pip install opencv-python pillow numpy

#

Using cached numpy-2.3.5-cp314-cp314-win_amd64.whl.metadata (60 kB)
Using cached numpy-2.2.6.tar.gz (20.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

Γ— Preparing metadata (pyproject.toml) did not run successfully.
β”‚ exit code: 1
╰─> [21 lines of output]
+ C:\Users\onlyj\AppData\Local\Programs\Python\Python314\python.exe C:\Users\onlyj\AppData\Local\Temp\pip-install-47nv5tur\numpy_4b12821fe0f440548297cd543135156f\vendored-meson\meson\meson.py setup C:\Users\onlyj\AppData\Local\Temp\pip-install-47nv5tur\numpy_4b12821fe0f440548297cd543135156f C:\Users\onlyj\AppData\Local\Temp\pip-install-47nv5tur\numpy_4b12821fe0f440548297cd543135156f.mesonpy-5nn_orbs -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\onlyj\AppData\Local\Temp\pip-install-47nv5tur\numpy_4b12821fe0f440548297cd543135156f.mesonpy-5nn_orbs\meson-python-native-file.ini
The Meson build system
Version: 1.5.2
Source dir: C:\Users\onlyj\AppData\Local\Temp\pip-install-47nv5tur\numpy_4b12821fe0f440548297cd543135156f
Build dir: C:\Users\onlyj\AppData\Local\Temp\pip-install-47nv5tur\numpy_4b12821fe0f440548297cd543135156f.mesonpy-5nn_orbs
Build type: native build
Project name: NumPy
Project version: 2.2.6
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

  ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
  The following exception(s) were encountered:
#

Running icl "" gave "[WinError 2] The system cannot find the file specified"
Running cl /? gave "[WinError 2] The system cannot find the file specified"
Running cc --version gave "[WinError 2] The system cannot find the file specified"
Running gcc --version gave "[WinError 2] The system cannot find the file specified"
Running clang --version gave "[WinError 2] The system cannot find the file specified"
Running clang-cl /? gave "[WinError 2] The system cannot find the file specified"
Running pgcc --version gave "[WinError 2] The system cannot find the file specified"

  A full log can be found at C:\Users\onlyj\AppData\Local\Temp\pip-install-47nv5tur\numpy_4b12821fe0f440548297cd543135156f\.mesonpy-5nn_orbs\meson-logs\meson-log.txt
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Γ— Encountered error while generating package metadata.
╰─> numpy

#

i use Python 3.14

lapis spear
#

This happens because Python 3.14 is too new.
NumPy (and OpenCV) don’t have prebuilt Windows wheels for it yet, so pip tries to build NumPy from source.
That build fails because you don’t have Visual Studio C++ Build Tools installed.
The simple solution: You can use python 3.12 (most stable right now).

smoky pond
#

@proud bolt ^^

proud bolt
#

thx

#

so i need to uninstall this ver?

#

and instal that one

#

@lapis spear

smoky pond
#

It's probably enough to install 3.12 and just make sure you install to 3.12:

py -3.12 -m pip install opencv-python pillow numpy
lapis spear
proud bolt
#

ok

smoky pond
#

(Adjusted the command, reread it.)

proud bolt
lapis spear
proud bolt
#

its a tool somewear or its just a command into cmd?

#

nvm i found how

#

trhank you very much guys ! @lapis spear @smoky pond

near obsidian
lapis spear
#

That's possible, but it's more stable to uninstall and then re-enable it.

smoky pond
near obsidian
proud bolt
#

Note that Python 3.12.10 cannot be used on Windows 7 or earlier. this one is good?

#

it works

#

THANK YOU GUYSSS

proud bolt
#

from 292 imiges i got 17k of individual lutsπŸ”₯

hexed valleyBOT
#
Python help channel closed for inactivity

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.