Problem Installing azure-pipeline due to ruamel.yaml - python

I am trying to install azure-pipeline using:
pip install azureml-pipeline
When I do this it installs most dependencies fine until I receive the following error messages:
Building wheel for ruamel.yaml (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
ERROR: Failed building wheel for ruamel.yaml
Running setup.py install for ruamel.yaml did not run successfully.
Note that when I install ruamel.yaml with pip it says all requirements are satisfied and when I try to reinstall the wheel tool all requirements are satisfied:
pip install ruamel.yaml
pip install -U pip setuptools wheel
Has anyone encountered this problem or know something I need to install maybe to get this to work? Note: Azureml is installed on my machine fine.
Edit:
Python Version = 3.9.7
OS = macOS Monterey v12.3.1
Here is a link to the error message in full: https://github.com/bencouser/errormessages/blob/main/error.txt

I am not sure why your environment tries to create a wheel. The documented way to install ruamel.yaml is to do:
pip install ruamel.yaml
that will get you the wheel if it is available.
You should try to run the command above before running pip install azureml-pipeline and see if that solves the proglem. If that doesn't work, provide more information ((link to) full error trace, python version, host platform/architecture).

Related

ERROR: No .egg-info directory found in C:\Users\xxx\AppData\Local\Temp\pip-pip-egg-info-34tpfu29

When I install tablib[all]
command is: pip install tablib[all]
Always report errors as follows:
Preparing metadata (setup.py) … done
ERROR: No .egg-info directory found in C:\Users\xxx\AppData\Local\Temp\pip-pip-egg-info-34tpfu29
Ask for help. ths
I've upgraded both pip and setuptools to the latest version.
But the problem remains.
Some packages can be successfully installed. Such as xlrd, xlwt..
My python version
python --version
Python 3.8.8

Getting error when i use pip install baselines

conf:mac catalina,MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports),pycharm.
the error:
ERROR: Failed building wheel for mpi4py
Building wheel for zmq (setup.py) ... done
Created wheel for zmq: filename=zmq-0.0.0-py3-none-any.whl size=1264 sha256=be7f6ab763266c2291f5ca7998e3ad24e48a4e85c04a2aa09a7fd5531823ae5b
Stored in directory: /Users/mac/Library/Caches/pip/wheels/4d/41/3a/bfd4dafaf1c20a4d08ff78bfcab77fcc4cf98e97c7941ce77a
Successfully built baselines zmq
Failed to build mpi4py
ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects
Try updating pip before installation :
pip3 install --upgrade pip
Create new virtualenv clear the pip cache like below and try to install it again.
pip cache purge
I checked the documentation, it also says you need to install MPI implementation

HuggingFace Transformers not getting installed in VS Code

I'm new in VS code and in coding in general, I've been trying to install transformers with the command pip install transformers and pip install transformers[tf-cpu] both didn't work, with the following error:
Building wheel for tokenizers (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\TevaJ\Desktop\Projects\venv\Scripts\python.exe' 'C:\Users\TevaJ\Desktop\Projects\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\TevaJ\AppData\Local\Temp\tmps54vamjd'
cwd: C:\Users\TevaJ\AppData\Local\Temp\pip-install-kolpujzg\tokenizers_befed87ed1a749f8a23369cfa56db8a2
Complete output (19 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\tokenizers
copying tokenizers\__init__.py -> build\lib.win-amd64-3.10\tokenizers
running build_ext
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
----------------------------------------
ERROR: Failed building wheel for tokenizers
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects
(venv) PS C:\Users\TevaJ\Desktop\Projects>
I looked up on google but I can't find a solution.
Does anyone know this error and how to fix it?
Solved.
Just had to install it from source without dependencies with PIP 619.
git clone https://github.com/huggingface/transformers.git
cd transformers
pip install -e .
Another possible solution - is install Rust compiler, make a restart and try pip install again.
I try the following command.It works
conda install -c huggingface transformers

pyodbc 3.0.10 fails to install OS X 10.10

I'm trying to install the latest version of pyodbc on os x yosemite.
I can get 3.0.7 to install (but on python3 this reports as 3.0.0 unsupported)
I am getting the following errors when running:
sudo python3 setup.py build install
ld: library not found for -lodbc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang++' failed with exit status 1
I have got an ODBC driver install and can use this with python2 and python2 reports 3.0.7 is the version used (same download!)
It looks like something has changed on the compilation (previously I've had to copy all the .h files to my /usr/include from the Iodbc download.
I'm now a bit stuck
Any help please ? I'm not getting any answers on the github project.
I believe you may need to do a pip install of the ZIP file directly. This works for me:
pip install https://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip
That should install 3.0.7 directly. Here's an example, using a virtualenv with virtualenvwrapper:
[vagrant#vagrant test]$ mkvirtualenv myvenv
(myvenv)[vagrant#vagrant test]$ pip install https://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip
Collecting https://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip
Using cached https://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip
Installing collected packages: pyodbc
Running setup.py install for pyodbc
Successfully installed pyodbc-3.0.7
(myvenv)[vagrant#vagrant test]$ pip freeze
pyodbc==3.0.7
Since that works, you could try to install the newer 3.0.10 (replace pip with pip3 in your case; most people will be using pip):
pip uninstall pyodbc
pip install pyodbc==3.0.10
Give that a try. If it doesn't work, I'd stick with 3.0.7 for now. There is no install ZIP for 3.0.10 (yet), as the pyodbc project is being moved to GitHub from Google Code (which is closing).

command python setup.py egg_info failed

I keep getting the errors "pg_config executable not found" and "Command python setup.py egg_info failed with error code 1" when trying to run pip install -r inside a virtual environment. I have done everything that has been suggested on other questions, including running pip install --upgrade setuptools, easy_install -U setuptools and pip install --upgrade Distribute. Is there anything else that can fix this error? The only people getting this error, for my group, are the two of us who are on Windows. Those who are on Mac OS aren't getting this error, only those of us who are on Windows. Screenshot here: http://tinypic.com/r/2drtd38/8
The Gohlke precompiled binaries are usually an easier way to install packages on windows:
psycopg

Categories