https://pypi.org/project/python-shout/#files
Well, I tried:
python3.6 setup.py build
But I got this message:
Using PKG_CONFIG_PATH=/usr/lib/pkgconfig
pkg-config and shout-config unavailable, build terminated
main# pip3 install python-shout
Collecting python-shout
Using cached https://files.pythonhosted.org/packages/4a/d9/a845873d3fbf57cfecfa88e20eae77ef93f1a6bc68d9e092c8e020d96b88/python-shout-0.2.6.tar.gz
Complete output from command python setup.py egg_info:
Using PKG_CONFIG_PATH=/usr/lib/pkgconfig
pkg-config and shout-config unavailable, build terminated
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-oqd340si/python-shout/
You are using pip version 18.1, however version 20.2b1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Same error from: https://icecast.org/download/
Same error from: https://pypi.org/project/python-shout3/#files
Any help would be useful.
Related
This question already has answers here:
Error: command 'gcc' failed: No such file or directory
(2 answers)
Closed 2 months ago.
I am trying to install check-jsonschema in my azure DevOps pipeline using bash script with command pip3 install check-jsonschema
I am getting the error:
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
sys.argv ['/tmp/pip-install-u48i45ec/ruamel-yaml-clib_2a15479bb22c491b8ba675f78470fa73/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-bpnbewqf']
test compiling /tmp/tmp_ruamel_fh9vi6iq/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_fh9vi6iq/test_ruamel_yaml.c
Exception: command 'gcc' failed: No such file or directory
[end of output]
For Micrsoft hosted ubuntu agent, pip3 install check-jsonschema could run well.
For self-hosted agent, it seems that you need to install GCC.
You could check GCC version with cmd:
gcc --version
If it failed, you could try
Method1:
sudo apt install gcc
Method2:
$ sudo apt update
$ sudo apt install build-essential
The second method is to install build-essentials onto your system which will also include the gcc.
I'm building a docker image on cloud server via the following docker file:
# base image
FROM python:3
# add python file to working directory
ADD ./ /
# install and cache dependencies
RUN pip install --upgrade pip
RUN pip install RUST
RUN pip install transformers
RUN pip install torch
RUN pip install slack_sdk
RUN pip install slack_bolt
RUN pip install pandas
RUN pip install gensim
RUN pip install nltk
RUN pip install psycopg2
RUN pip install openpyxl
......
When installing the transformers package, the following error occurs:
STEP 5: RUN pip install transformers
Collecting transformers
Downloading transformers-4.15.0-py3-none-any.whl (3.4 MB)
Collecting filelock
......
Downloading click-8.0.3-py3-none-any.whl (97 kB)
Building wheels for collected packages: tokenizers
Building wheel for tokenizers (pyproject.toml): started
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python /usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp_3y7hw5q
cwd: /tmp/pip-install-bsy5f4da/tokenizers_e09b9f903acd40f0af4a997fe1d8fdb4
Complete output (50 lines):
running bdist_wheel
......
copying py_src/tokenizers/trainers/__init__.pyi -> build/lib.linux-x86_64-3.10/tokenizers/trainers
copying py_src/tokenizers/tools/visualizer-styles.css -> build/lib.linux-x86_64-3.10/tokenizers/tools
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
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects
Building wheel for tokenizers (pyproject.toml): finished with status 'error'
Failed to build tokenizers
subprocess exited with status 1
subprocess exited with status 1
error building at STEP "RUN pip install transformers": exit status 1
time="2022-01-18T07:24:56Z" level=error msg="exit status 1"
Dockerfile build failed - exit status 1exit status 1
I'm not very sure about what's happening here. Can anyone help me? Thanks in advance.
The logs say
error: can't find Rust compiler
You need to install a rust compiler. See https://www.rust-lang.org/tools/install. You can modify the installation instructions for a docker image like this (from https://stackoverflow.com/a/58169817/5666087):
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
Just use a clean python=3.8 environment and try again.
I am trying to install pyscopg2 on kali-linux
after installing postgresql I tried :
$ sudo pip3 install pyscopg2
and I get the following :
ERROR: Complete output from command python setup.py egg_info:
ERROR: running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-_hg2dt6y/psycopg2/
1)
I tried :
$ sudo pip3 install postgresql-server-dev-X.Y
and I get the following :
ERROR: Could not find a version that satisfies the requirement postgresql-server-dev-X.Y (from versions: none)
ERROR: No matching distribution found for postgresql-server-dev-X.Y
I expect pyscopg2 to be installed .
In Ubuntu 18,
install the dependency first -
sudo apt-get install libpq-dev python3-dev
And then go to your environment and install -
sudo pip install psycopg2
when i try to install ssdeep
pip install ssdeep
i get this output message
c:\Python34\Scripts>pip install ssdeep
Collecting ssdeep
Using cached ssdeep-3.2.tar.gz
Complete output from command python setup.py egg_info:
----------------------------------------
Command "python setup.py
egg_info" failed with error code 1 in C:\Users\czosnek\
AppData\Local\Temp\pip-build-mmy6xmrp\ssdeep\
I use Windows 7 64 and Python 3.4.
I had a similar error once when trying to install a package. Try installing the wheel first and then doing it again.
do the following command:
sudo apt-get install build-essential libffi-dev python python-dev pip libfuzzy-dev
after just use pip:
pip install ssdeep
I get the following error after running pip install rpy2 on a mac with OSX 10.11.2 and Python 2.7.12:
Collecting rpy2
Downloading rpy2-2.8.2.tar.gz (186kB)
100% |████████████████████████████████| 194kB 3.0MB/s
Complete output from command python setup.py egg_info:
Warning: Tried to guess R's HOME but no command (R) in the PATH.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/ml/wk8739s920z0rq1_rjrb2z980000gn/T/pip-build-8TiA72/rpy2/
I have also tried running it with sudo:
Collecting rpy2
Downloading rpy2-2.8.2.tar.gz (186kB)
100% |████████████████████████████████| 194kB 2.0MB/s
Complete output from command python setup.py egg_info:
Warning: Tried to guess R's HOME but no command (R) in the PATH.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-FDFFDI/rpy2/
I have tried pip install --upgrade setuptool and upgrading pip to latest version but nothing seems to work.
Could you please help?
Thank you.