installing pygraphviz on Python3.6 (win10, anaconda) - python-3.6

I have problems installing pygraphviz, I tried several ways but none succeeded
1.>pip install pygraphviz
Running setup.py bdist_wheel for pygraphviz ... error
Failed building wheel for pygraphviz
Running setup.py install for pygraphviz ... error
2.>pip install pygraphviz-1.3.1-cp34-none-win_amd64.whl
pygraphviz-1.3.1-cp34-none-win_amd64.whl is not a supported wheel on this platform.
3.>pip install pygraphviz-1.4rc1.tar.gz
Running setup.py bdist_wheel for pygraphviz ... error
Failed building wheel for pygraphviz
Running setup.py install for pygraphviz ... error
4.>python setup.py install --include-path=/usr/local/Cellar/graphviz/2.38.0/include/graphviz --library-path=/usr/local/Cellar/graphviz/2.38.0/lib
'graphviz/cgraph.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.13.26128\bin\HostX86\x64\cl.exe' failed with exit status 2

Related

Unable to install yfinance

The package will not install.
In the command prompt I entered, 'pip install yfinance'
C:\Users\gam19\AppData\Local\Temp\xmlXPathInitw4g8q0z6.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x86\\cl.exe' failed with exit code 2
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
You can download the wheel from https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml and install it (E.g. pip install lxml‑4.9.0‑cp311‑cp311‑win_amd64.whl). Trying pip install yfinance might work after that.

During Instl apache-airflow got the error: subprocess-exited-with-error, Building wheel for setproctitle (pyproject.toml) did not run successfully

pip install apache-airflow
pip3.9 install apache-airflow
The Err by Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
Using legacy 'setup.py install' for flask-login, since package 'wheel' is not installed.
Using legacy 'setup.py install' for python-nvd3, since package 'wheel' is not installed.
Using legacy 'setup.py install' for python-slugify, since package 'wheel' is not installed.
Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed.
Using legacy 'setup.py install' for unicodecsv, since package 'wheel' is not installed.
Using legacy 'setup.py install' for blinker, since package 'wheel' is not installed.
Using legacy 'setup.py install' for Flask-JWT-Extended, since package 'wheel' is not installed.
Building wheels for collected packages: setproctitle
Building wheel for setproctitle (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for setproctitle (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
running bdist_wheel
running build
running build_ext
building 'setproctitle' extension
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for setproctitle
Failed to build setproctitle
ERROR: Could not build wheels for setproctitle, which is required to install pyproject.toml-based projects
actually already tried to downgrade the pip version from pip 22.0.3 to 20.2.4
pip install --upgrade pip==20.2.4
like solution in the thread "Could not build wheels for setproctitle..."
still the same error

Not able to install python package secp256k1

I am getting the below error while installing secp256k1 python package. I am using python3.6 version
pip install secp256k1
0.28
Using bundled libsecp256k1
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\secp256k1
copying secp256k1\__init__.py -> build\lib.win-amd64-3.5\secp256k1
copying secp256k1\__main__.py -> build\lib.win-amd64-3.5\secp256k1
running build_clib
error: [WinError 193] %1 is not a valid Win32 application

Error installing tensor flow in R studio

This is how I tried installing tensorflow using R studio.
install.packages("tensorflow")
library(tensorflow)
install_tensorflow()
This is the error that I am getting:
>> library(tensorflow)
>> install_tensorflow()
Preparing for installation (updating pip if necessary)
E:\python\python.exe: No module named pip
Error: Error 1 occurred updating pip
In addition: Warning message:
running command '"E:\python\python.exe" -m pip install --upgrade pip' had status 1
Has anyone got any idea on what to do?
Check , if python is installed on your machine. If not, install it and try to install tensorflow again

Error: spawn pycodestyle ENOENT

I got this error having linter-pep8 installed.
Error: spawn pycodestyle ENOENT
at exports._errnoException (util.js:1026:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
The error is caused by package being renamed from linter-pep8 to linter-pycodestyle v2.0.0
Solution:
Uninstall pep8 sudo pip uninstall pep8
Uninstall pycodestyle sudo pip uninstall pycodestyle
Again installing pycodestyle sudo pip install pycodestyle
Uninstall ATOM linter-pep8 package apm uninstall linter-pep8
Installing ATOM linter-pycodestyle package apm install linter-pycodestyle
Check if pycodestyle was installed correctly by executing which pycodestyle in terminal. It should return path to pycodestyle (eg. /usr/local/bin/pycodestyle). You might set this path in Executable Path setting of atoms' linter-pycodestyle package -but it should work by default

Resources