Warum kann ich Numpy nicht auf Python 3.14 installieren?Python

Python-Programme
Anonymous
 Warum kann ich Numpy nicht auf Python 3.14 installieren?

Post by Anonymous »

Ich versuche, Numpy auf Python 3.140A5 zu installieren, um eine NLP Deep Learning AI zu trainieren. Ich benutze Windows 11. Ich versuche, es über die Eingabeaufforderung zu installieren, wobei PIP3.14 Numpy installieren kann. Dies gibt den folgenden Fehler < /p>

Code: Select all

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\Example\AppData\Local\Programs\Python\Python314\Scripts\pip3.14.exe\__main__.py", line 4, in 
from pip._internal.cli.main import main
File "C:\Users\Example\AppData\Local\Programs\Python\Python314\Lib\site-packages\pip\_internal\cli\main.py", line 11, in 
from pip._internal.cli.autocompletion import autocomplete
File "C:\Users\Example\AppData\Local\Programs\Python\Python314\Lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in 
from pip._internal.cli.main_parser import create_main_parser
File "C:\Users\Example\AppData\Local\Programs\Python\Python314\Lib\site-packages\pip\_internal\cli\main_parser.py", line 9, in 
from pip._internal.build_env import get_runnable_pip
File "C:\Users\Example\AppData\Local\Programs\Python\Python314\Lib\site-packages\pip\_internal\build_env.py", line 20, in 
from pip._internal.metadata import get_default_environment, get_environment
File "C:\Users\Example\AppData\Local\Programs\Python\Python314\Lib\site-packages\pip\_internal\metadata\__init__.py", line 9, in 
from .base import BaseDistribution, BaseEnvironment, FilesystemWheel, MemoryWheel, Wheel
File "C:\Users\Example\AppData\Local\Programs\Python\Python314\Lib\site-packages\pip\_internal\metadata\base.py", line 1, in 
import csv
ModuleNotFoundError: No module named 'csv'
Numpy ordnungsgemäß auf Python 3.13 installiert (deshalb verwende ich PIP3.14 Numpy anstatt nur PIP Installieren Sie Numpy , als PIP Installieren Sie Numpy standardmäßig zu versuchen, auf Python 3.13 zu installieren). Ich bekomme den gleichen Fehler in anderen früheren Versionen von Python 3.14. Angeben einer bestimmten Numpy -Version, z. B. Ausführen von PIP3.14 Installieren Numpy == 2.2.3 gibt stattdessen den folgenden Fehler an (dieser Fehler tritt sogar auf ältere Numpy -Versionen):

Code: Select all

Collecting numpy==2.2.3
Using cached numpy-2.2.3.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\Example\AppData\Local\Programs\Python\Python314\python.exe C:\Users\Example\AppData\Local\Temp\pip-install-jdrrny83\numpy_1a0097bbfaa6480097c75ed93192bbda\vendored-meson\meson\meson.py setup C:\Users\Example\AppData\Local\Temp\pip-install-jdrrny83\numpy_1a0097bbfaa6480097c75ed93192bbda C:\Users\Example\AppData\Local\Temp\pip-install-jdrrny83\numpy_1a0097bbfaa6480097c75ed93192bbda\.mesonpy-6d9eu6ll -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\Example\AppData\Local\Temp\pip-install-jdrrny83\numpy_1a0097bbfaa6480097c75ed93192bbda\.mesonpy-6d9eu6ll\meson-python-native-file.ini
The Meson build system
Version: 1.5.2
Source dir: C:\Users\Example\AppData\Local\Temp\pip-install-jdrrny83\numpy_1a0097bbfaa6480097c75ed93192bbda
Build dir: C:\Users\Example\AppData\Local\Temp\pip-install-jdrrny83\numpy_1a0097bbfaa6480097c75ed93192bbda\.mesonpy-6d9eu6ll
Build type: native build
Project name: NumPy
Project version: 2.2.3
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\Example\AppData\Local\Temp\pip-install-jdrrny83\numpy_1a0097bbfaa6480097c75ed93192bbda\.mesonpy-6d9eu6ll\meson-logs\meson-log.txt
[end of output]

note: This error originates from a subprocess, and is likely not a [url=viewtopic.php?t=11587]problem[/url] with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
< /code>
Ich habe versucht, das "vollständige Protokoll" zu finden, aber die Datei scheint nicht tatsächlich zu existieren, oder wenn sie es tut, ist es vor mir versteckt. Ich habe auch versucht, PIP3.14 auszuführen, um CSV 
zu installieren, um zu sehen, was passieren würde, und erhielt

Code: Select all

ERROR: Could not find a version that satisfies the requirement csv (from versions: none)
ERROR: No matching distribution found for csv
Beim Googeln habe ich Vorschläge zur Verwendung von PIP3.14 -m -PIP gefunden. Der erste gab < /p>
zurück

Code: Select all

Usage:
pip3.14  [options]

no such option: -m
Während der zweite mir 'python3.14' gab, wird nicht als interner oder externer Befehl, operierbares Programm oder Stapeldatei erkannt.
Die Dokumentation von Python 3.14 für das CSV -Modul erwähnt keine Probleme mit Python 3.14, und Numpys Dokumentation sagt, dass es mit Python 3.10 kompatibel ist später. < /p>
Also, was ist hier los? Warum kann ich Numpy nicht auf Python 3.14 installieren?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post