i tried to install twint using pip in github but i got this error: can anyone help me? - twint

Running setup.py install for cchardet ... error
error: subprocess-exited-with-error
× Running setup.py install for cchardet did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\cchardet
copying src\cchardet\version.py -> build\lib.win-amd64-3.10\cchardet
copying src\cchardet_init_.py -> build\lib.win-amd64-3.10\cchardet
running build_ext
building 'cchardet._cchardet' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[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.
╰─> cchardet
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Related

Pipx can not build packages when trying to install eth-brownie

I got a following error code while trying to install brownie through pipx (by typing "pipx install eth-brownie)
PS C:\Users\J.M\demos\brownie_simple_storage> pipx install eth-brownie
Fatal error from pip prevented installation. Full pip output in file:
C:\Users\J.M\.local\pipx\logs\cmd_2023-01-08_01.26.02_pip_errors.log
pip failed to build packages:
bitarray
cytoolz
lru-dict
multidict
psutil
regex
yarl
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Error installing eth-brownie.
PS C:\Users\J.M\demos\brownie_simple_storage>
I have all the prerequirements (node.js, recent python version, ganache cli, npm all successfully installed), I really have no idea why it can't build those packages.

Difficulty installing dbt snowflakes using pip

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I tried installing dbt-snowflake but having this error. Can anyone help please?
As the documentation states, dbt compatibility is up to python version 10. If you recently downloaded version 11 of python, it may cause unexpected behavior or errors. You need to install version 10 of python and attempt to reinstall dbt in a virtual environment using version 10.
Reference dbt docs here https://docs.getdbt.com/faqs/core/install-python-compatibility.

Numpy installation error while installing taiyaki with pip

I've been trying to install taiyaki with pip. I keep getting this error:
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.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
It seems to have some trouble with numpy installation, so I tried installing numpy with pip and removing it from the required dependencies in the setup.py file and it still does not work. I also tried running pip with '--no-cache-dir' option and '--no-deps' option but I get the same error.

How to install p4python on Cygwin64

Trying to install p4python on Cygwin fails with
$pip install p4python
[... logs ...]
File "/tmp/pip-install-6mn3hyn3/p4python_9e95a104710b449a90a68bc227a2ee69/setup.py", line 292, in run
raise Exception("Parameter --ssl is needed")
Exception: Parameter --ssl is needed
[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.
╰─> p4python
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I am using Cygwin64 on Windows 10, specifically:
$ pip --version
pip 22.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
$ python --version
Python 3.9.10
$ which python
/usr/bin/python
I tried using the wheel files from PyPi but there is no compatible platform for Cygwin.
How can I work around this ssl dependency to install the module?
I have included libssl while installing Cygwin.
Try
python -m pip install p4python

Python Package Modules Installing Error in PyCharm

Good day everyone,
To run my code i needed to set up my dependencies (I'm using PyCharm as IDE), while most of the packages were installed without any problems, there are 2 which pycharm CANNOT install:
pyredstat==0.2.5
orjson==3.4.6
what i get is:
Collecting pyreadstat==0.2.5
Using cached pyreadstat-0.2.5.tar.gz (1.1 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
It seems you are using windows 32bit, you will need to find zlib1.dll and li
biconv-2.dll from mingw 32 bits, (It is usually in the bin folder of mingw32 if yo
u are using msys) put it in the folder win_libs/32bit, remove the sys.exit in the
setup.py file and try again. Or maybe the dlls in the 64 bit folder work for 32 bi
t as well ... couldn't try as I don't have access toa 32 bit machine. Sorry!
[end of output]
note: This error originates from a subprocess, and is likely not a problem with
pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> pyreadstat
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
It already shows an hint on how to try to solve the issue but what is strange is that I DO NOT have a 32 bit architecture (My Python ver. is 3.7 32bit), but my Windows is 64 bit based, so the solution seems quite strage and i do not want to touch .dll stuff. Thank you all!
ps: i tried the installation using the pip command also.
You need Python 64 bit installed. If you have 32 bit Python, even if you have a 64 bit machine, Pyreadstat will fail as it is not possible to compile for 32 bit Python at the moment. Please install 64 bit Python, unfortunately that is the only solution.