Python Package Modules Installing Error in PyCharm - module

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.

Related

wheel, pyzmq, bad file descriptor proplems in anaconda for deep learning

I'm beginner of tensorflow.
I want to install, use jupyter notebook.
But that doesn't work in my notebook with bad file descripotr ploblem.
So I checked,deleted anaconda and tried to downgrade my pyzmq in 19.0.2 version.
but It has problem.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyzmq
What should I do?
I downloaded visual studio.
I wrote my laptop's imformation
processor 11th Gen Intel(R) Core(TM) i7-11370H # 3.30GHz 3.30 GHz
RAM 16.0GB(15.8GB available)
system 64bit, x64 processor
Thank you for read.
How to solve Failed building wheel for pymzq19.0.2

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.

Could not install pandas in MacOs Catalina due to error "most likely due to using a buggy Accelerate backend"

I'm using MacOS catalina and try to install pandas by
pip3 install pandas
But while I tried to import pandas, I got this error
python3 -c "import pandas"
This is error:
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned
I've been facing the same issue. There quite a bit of info here:
https://github.com/numpy/numpy/issues/15947
As I understand, its because your python version is detecting issues with the 'buggy Accelerate backend' in NumPy (NumPy is installed with Pandas).
I was running Python 3.9.0 and I was not able to fix. However I have been able to bypass the issue by using version Python 3.8.6. I used this guide to install 3.8.6
https://opensource.com/article/19/5/python-3-default-mac
See the part about
pyenv install
which I modified to:
pyenv install 3.8.6
After I restart, the debug in visual code now shows 3.8.6. I added all required modules again inluding NumPy and its working for me.
good luck

installing numpy for pypy 2.3.5 (python 3.2.5 compatible) on windows 7 with mingw32

Here is mine small research about how-to install numpy for pypy3 on windows 7 with mingw32 compiler.
At first,tried to make it simple:
pypy setup.py install build --compiler=mingw32
But, here i got this error. Fortunately, i found this solution. Now, i'm trying again:
pypy setup.py install build --compiler=mingw32
And the error is:
data=DATA_RE.findall(nm_output)
TypeError:can't use a bytes pattern in string-like object
This error occurs in file pypy_numpy\numpy\distutils\lib2def.py.
So,the question is about how to handle this?

Missing gcc-4.0 error on pip install twisted in virtual env

I'm trying to use Scrapy inside a virtualenv, which requires installation of twisted as well. I did pip install Scrapy with no problems, but when I try pip install twisted, I'm getting the following error multiple times in the output:
unable to execute gcc-4.0: No such file or directory
error: command 'gcc-4.0' failed with exit status 1
I previously had a similar problem when trying to install python packages on my actual system, which is why I started using virtualenv in the first place. Is this an issue of the python version installed on my environment? This is what I currently have:
Django - 1.5 - active
Python - 2.7.3 - active development (/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload)
Scrapy - 0.16.4 - active
pip - 1.2.1 - active
setuptools - 0.6c11 - active
wsgiref - 0.1.2 - active development (/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7)
yolk - 0.4.3 - active
To check which version of gcc I have I typed gcc at the command line and got
i686-apple-darwin11-llvm-gcc-4.2: no input files
I tried export CC=gcc-4.2 before running pip install twisted, and I got:
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/s8/d0f65gc93nbchdk52g2cg5f80000gn/T//ccWQa7cJ.out
error: command 'gcc-4.2' failed with exit status 255
It sort of looks to me like it's looking for powerpc-apple-darwin11-llvm-gcc-4.2, and what I have above is i686-apple-darwin11-llvm-gcc-4.2--are these different and therefore causing the problem?
To give more background info, I installed Python 2.7 from a Python.org installer a long time ago before upgrading from Snow Leopard straight to Mountain Lion. If I simply type in python at the command line I get
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:32:06)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
So I'm guessing that means I'm using Apple's Python? And it's built with gcc-4.0.1? So if that's the case, shouldn't I not need to do the export CC=gcc-4.2? Or do I need to do that AND switch to the Python.org version of Python? (And if the latter, how do I do that?)
Update: I tried this solution for switching Python versions but it didn't work.
Update: I managed to switch Python versions (outside of my virtualenv) using the sudo port select --set python python27 command, but this didn't solve the problem even though I'm now showing:
Python 2.7.3 (default, Nov 17 2012, 19:54:34)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
when I type python at the commmand line.
Update: I also found this solution to a question that seemed to have almost the exact same issues as I'm having, but I'm already upgraded to XCode 4.6 and definitely have the Command Line Tools installed as described in the aforementioned solution (Preferences>Downloads tab>Install Command Line Tools). I do also have XCode 3.2.6 installed, however--any chance that's causing my problems?
Have you tried CC="$(type -p clang)" pip install twisted? You don't necessarily need to use gcc to compile Twisted's extensions; selecting clang instead might clear up whatever weird problem seems to be infesting your gcc installation.
If that doesn't work, I would suggest un-installing any Python.org versions of Python and then possibly re-installing both the OS and Xcode, since it looks like something might have corrupted your system Python install. I have no idea how references to powerpc stuff have persisted into Mountain Lion, since Lion removed support for ppc.