Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Preparing metadata (pyproject.toml) ... during pip install --upgrade #439

Open
gcabarelaNIQ opened this issue Jan 24, 2025 · 1 comment

Comments

@gcabarelaNIQ
Copy link
Collaborator

I can't make it through the installation process...

I tried everything I can think of, from virtual environments to re-installing my VS Code BuildTools. Has anyone experience this? Here's the detailed output error:

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
+ C:\Users\guill\Documents\Meridian Certification Training_ NIQ\Code Environment\env\Scripts\python.exe C:\Users\guill\AppData\Local\Temp\pip-install-bslr6lp1\numpy_f29be477992f42c590b8a3dd443753cf\vendored-meson\meson\meson.py setup C:\Users\guill\AppData\Local\Temp\pip-install-bslr6lp1\numpy_f29be477992f42c590b8a3dd443753cf C:\Users\guill\AppData\Local\Temp\pip-install-bslr6lp1\numpy_f29be477992f42c590b8a3dd443753cf.mesonpy-fmqw9tii -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\guill\AppData\Local\Temp\pip-install-bslr6lp1\numpy_f29be477992f42c590b8a3dd443753cf.mesonpy-fmqw9tii\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\guill\AppData\Local\Temp\pip-install-bslr6lp1\numpy_f29be477992f42c590b8a3dd443753cf
Build dir: C:\Users\guill\AppData\Local\Temp\pip-install-bslr6lp1\numpy_f29be477992f42c590b8a3dd443753cf.mesonpy-fmqw9tii
Build type: native build
Project name: NumPy
Project version: 1.26.4
C compiler for the host machine: cl (msvc 19.42.34436 "Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x86")
C linker for the host machine: link link 14.42.34436.0
C++ compiler for the host machine: cl (msvc 19.42.34436 "Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x86")
C++ linker for the host machine: link link 14.42.34436.0
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: x86
Host machine cpu: x86
Program python found: YES (C:\Users\guill\Documents\Meridian Certification Training_ NIQ\Code Environment\env\Scripts\python.exe)
Need python for x86, but found x86_64
Run-time dependency python found: NO (tried sysconfig)

  ..\meson.build:41:12: ERROR: Python dependency not found
@lukmaz
Copy link
Collaborator

lukmaz commented Jan 28, 2025

Hi @gcabarelaNIQ ,
I am happy to assist you with installing Meridian on Windows. To help me better understand the issue, may I ask you some clarifying questions?

  1. What is your python version?
  2. What is the exact installation command you used?
  3. Did you use a virtualenv?

The current version of Meridian (1.0.0) should work properly with python 3.11 and 3.12 (3.13 is not yet supported by TensorFlow). To make sure the installation does not interfere with other packages installed on your machine, it is best to install Meridian in a fresh virtual environment. The following commands should pull the recent version of Meridian (1.0.0) from PyPI and install with pip in a fresh virtual environment. Could you please run the following commands and see if they work and otherwise provide the error message you get?

python -m venv .venv
.\.venv\Scripts\activate
python --version
pip install --upgrade google-meridian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants