When I run the command pipx install eth-brownie I receive the following error message,
fatal error from pip prevented installation. Full pip output in file:
/Users/gentgjonbalaj/.local/pipx/logs/cmd_2021-10-22_11.10.14_pip_errors.log
pip failed to build package:
cytoolz
Some possibly relevant errors from pip install:
cytoolz/functoolz.c:23087:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
cytoolz/functoolz.c:23092:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
cytoolz/functoolz.c:23176:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
error: command '/usr/bin/clang' failed with exit code 1
Error installing eth-brownie.
I tried to use the command "pip install eth-brownie" but my terminal says "pip command not found."
I received the same error, and was finally able to resolve after running the following commands:
Using Homebrew:
brew install recordclass
brew install cython
xcrun codesign --sign - "/Users/jon/Library/Python/3.8/lib/python/site-packages/regex/_regex.cpython-38-darwin.so"
pip3 install cytoolz
pip3 install pybind11
M1 Mac Chips has issues. There are issues at 2 fronts. (a) cytoolz, (b) regex==2021.10.8.
(a) cytoolz is resolved by doing pip install cytoolz and not pipx
(b) regex issue is a big one. The issue is with the version. Packaging bug causes an x86_64 regex to be installed on an Apple Silicon (M1) device (https://githubmemory.com/#dragos-vlad). To fix this: Pinning regex to 2021.9.30 should work for the time being. However for that you will have to change the requirements in the brownie git that you will use for installing.
For anyone using Windows 10 I had the same issue, just had to run:
pip install Cython
then
pip install eth-brownie
For whatever reason I was finally able to install with pip but not with pipx.
I have this problem with python 3.10. Try pyenv and use python 3.9.1 and it works.
What worked for me in Python 3.10 was installing cython and cytoolz before brownie.
Enter these three commands:
python3 -m pip install --user cython
python3 -m pip install --user cytoolz
python3 -m pip install --user eth-brownie
I had the same problem, Use pip rather than pipx.
command: pip install eth-brownie
For anyone using Python 3.10 on windows, simple run
pip install eth-brownie
It worked for me when I used pip3 install eth-brownie instead of pipx
Related
I want to install mpi4py.
The installation fails with the error below.
Please share the solution to the same error.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mpi4py
Failed to build mpi4py
ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects
[notice] A new release of pip available: 22.3 -> 22.3.1
[notice] To update, run: python -m pip install --upgrade pip
I installed pyproject-toml with "pip install pyproject-toml".
But mpi4py still won't install.
My python version is Python 3.8.0.
The following worked for me:
sudo apt update
sudo apt-get install libopenmpi-dev
It seems that related packages are twisted.
Installed by following the steps below.
apt --fix-broken install
apt install mpich
pip install mpi4py
For me it worked when I used sudo before:
sudo pip install mpi4py
I had the same error message. I used the Anaconda-Navigator interface and it worked fine.
Another option is to use brew. If OpenMPI isn't a dependency issue for you, the installation worked when I used it as well.
brew install mpi4py
I'm trying to set up a virtual environment. I have a Mac, using Mac OS Big Sur 11.1. I have installed the latest stable version of python, but when I enter this command into the terminal window
-m pip install pipenv pip --upgrade
I get the following error
zsh: command not found: -m
before, it would say
"No module named pip"
Do I have to install pip separately with
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
I thought pip was included by default when you install python? I think I might have pip because when I type
python3 -m pip
into the command line, I get a long list of commands (install packages, download packages, etc.) General options... Thus should I install pip? one person on reddit said,
Pip is not necessarily included with any version of Python. In many
distributions, it must be installed separately.
If python3 -m pip works, then you have a bad install, not a missing
one.
thus did I incorrectly install python? When I was installing it there was no option to
"add python to PATH"
Do I have to do this on a mac? If I input
python3 -V
in terminal, I get
Python 3.9.2
Thanks
i solved this by running,
pip3 install pip --upgrade
After installing horovod via pip3 install horovod
I get an error:
ImportError: Extension horovod.tensorflow has not been built: /usr/local/lib/python3.7/site-packages/horovod/tensorflow/mpi_lib.cpython-37m-darwin.so not found
If this is not expected, reinstall Horovod with HOROVOD_WITH_TENSORFLOW=1 to debug the build error.
Also tried
pip3 uninstall horovod
HOROVOD_WITH_TENSORFLOW=1 pip3 install horovod
pip3 uninstall horovod
HOROVOD_WITHOUT_MPI=1 pip3 install horovod
but get the same error.
One tricky thing about Pip is that you need to specify --no-cache-dir to prevent it from reusing its "cached" version of the package (in your case, compiling Horovod with different installation flags. So try something like this:
HOROVOD_WITHOUT_MPI=1 HOROVOD_WITH_TENSORFLOW=1 pip3 install --no-cache-dir horovod
Specific to macOS, you need to make sure libuv is installed before installing Horovod with Gloo (without MPI):
brew install libuv
I'm on Windows 10.
I was following the instructions on https://kivy.org/doc/stable/installation/installation-windows.html# and I reached the part where it says:
Install Kivy:
python -m pip install kivy==1.11.1
After I type it in cmd, it gives me an error. I'll put the error as a comment.
Try pip install pipwin and then pipwin install kivy==1.11.1
Credits to #KetZoomer
try to install thanks to pip, type in a terminal:
pip install kivy[base] kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/
I am trying to install pygobject for python 2.7 in pycharm for the purpose of using gstreamer. However I am having problems installing it. While in the virtual environment, if I use
pip install pygobject
Then the build fails and gives me this error
gi/gimodule.c:25:10: fatal error: 'glib-object.h' file not found
#include <glib-object.h>
^~~~~~~~~~~~~~~
1 error generated.
error: command 'cc' failed with exit status 1
full error log here
I know for a fact that glib exists on my system from searching for it with
find /usr -name glib-object.h
but for some reason the install can't find it. Do I have to link it in somehow/how do I go about doing this?
Also I know I can more successfully use this library with python3 but that caused some weird system errors that can apparently be resolved by using 2.7 so I am just exploring that at the moment.
With virtual environments it's recommended installing PyGObject with pipenv instead of pip.
Install pipenv with either MacPorts, HomeBrew or pipsi:
MacPorts
port install pipenv
HomeBrew
brew install pipenv
pipsi
curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python3 - --src=git+https://github.com/mitsuhiko/pipsi.git\#egg=pipsi
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
pipsi install pew
pipsi install pipenv
Once you've got pipenv installed then you should be able to add the package to your virtual environment:
pipenv install pygobject
↳ PyGObject : Creating A Development Environment