How to build pysparse on Ubuntu - python

When I try to install pysparse via pip install pysparse==1.3-dev, the build fails with the error:
pysparse/sparse/src/spmatrixmodule.c:4:22: fatal error: spmatrix.h: No such file or directory
These kinds of errors are usually the result of some missing system dev package, but googling doesn't show anything for "spmatrix". I tried installing the python-sparse package, which does provide this file, but I still get the same error.
How do I fix this?

In this dev-1.3 pakage there were no ".h" and ".c" files if you go through their source.
Use pip install pysparse==1.2-dev213 or lower versions or pip install csc-pysparse

Related

Getting error while installing the great exepectation tool in local

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\dineshreddy.d\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\jedi\\third_party\\django-stubs\\django-stubs\\contrib\\contenttypes\\management\\commands\\remove_stale_contenttypes.pyi'
I am unable to install the great expecatation packages in the local . Getting the above error.
I tried with the pip install great_expectations --user command but i am getting the same error
It looks like you are running into an issue with a missing file when trying to install the greatexpectations package. The file that is missing is located in the
C:Usersdineshreddy.dAppDataLocalPackagesPythonSoftwareFoundation contains the file that is missing. The removeestale_contenttypes.pyi file can be found in the Python.3.10qbz5n2kfra8p0LocalCachelocal-packagesPython310site-packagesjedithirdpartydjango-stubsdjango-stubscontribcontenttypesmanagementcommands directory.
You can try reinstalling the jedi package with the pip install jedi command to resolve this issue. You can also try installing the great expectations package in a virtual environment to avoid conflicts with other packages.

"Cannot open include file: 'gsl/gsl_errno.h': No such file or directory" error on Widnows 10

I am trying to install a python package pyphenomd in anaconda on my Windows 10. I have installed Microsoft Visual C++ 2015 and the GNU Scientific Library (GSL) package using conda.
I then tried installing pyphenomd using in the Anaconda Prompt
pip install pyphenomd
(Not using conda install since that gives a Packages Not Found Error.)
But I keep getting the following error.
Then
Installing collected packages: pyphenomd
Running setup.py install for pyphenomd ... error
Followed by another iteration of the above error. Finally ending with this message
Based on Cannot open include file: 'gsl/gsl_errno.h': No such file or directory message I am assuming the error is Visual C++ is not able to access the header files for gsl. I then reinstalled the gsl package from conda but that didn't help. So then I installed GSL using vcpkg following the procedure mentioned in here. This did not help either and I am still getting the same error. Installing GSL via cygwin also didn't help.
Now I don't know what to do. I am not even sure if the error is with the installation of gsl ?
Other similar questions that I found either didn't have any answers or the provided solutions weren't relevant.

Flask-LDAP installation on windows box

I'm trying to set up single sign on using Python Flask on a windows box.
It looks like Flask-LDAP or Flask-Kerberos is what I should be using but I can't seem to install it using pip on a Windows box.
The installation fails with an error:
fatal error C1083: Cannot open include file: 'lber.h': No such file or directory
Does anyone have any experience doing this?
It's failing to install a prereq. I used Christoph Gohlke's python-ldap wheel to install python-ldap. Once python-ldap was installed, pip install Flask-LDAP ran successfully.
I don't use Flask-Kerberos, so I'm not sure which component fails to install there, but it likely has a similar resolution. Figure out which prereq is failing, find the unofficial Windows wheel for it, then try again with the prereq already installed.

Syntax Error from 'pip install' in python + command line

Okay, so, I'm running Python 3.4.3 with pip 9.0.1, with the setuptools and wheel.
I'm running this inside JetBrains PyCharm Professional 2017.2.3.
The issue I'm having is trying to install the twitter api packages from this tutorial (ya I'm a n00b) http://wiki.openhatch.org/Twitter
I'm struggling with installing the 4 dependencies mentioned in the first part of the tutorial (httplib2, simplejson, oauth2 and python-twitter)
Honestly, I'm just getting back into programming and this is a project I'd like to complete.
So, I need help with:
Installing pip, and how to use it, and where (python shell or command line or)
the dev.twitter.com website (and where to find what I need from there)
Any help is massively appreciated and sorry if I sound really n00by, but do correct me where I'm using incorrect terms etc because that's how I learn I guess :)
If you haven't got pip installed, find your python installation file.Execute it and choose 'Change Python Installation'. Now choose 'pip' to install and 'add python.exe to path'. Wait for it to finish. Now run windows command line and type:
pip install package_name
Sometimes you may experience that a package isn't available on pip or doesn't work.There are 2 common (not always working) ways to install a package without making pip download the file:
1) A package may be available as a .whl file for download.Download it.Now find it and copy its name .Open a command line in dictionary where it is located and type
pip install **now paste the filename and add .whl**'
2)A package is available as a zip file.Packages are often packed into a zip file.Download the file and extract it.Open a command line in it's directory.You may see setup.py file.Run
python setup.py install
When finished installing pip and adding python to path,you can run:
pip install httplib2 simplejson oauth2 python-twitter
Done.
Once you have pip installed, open the command prompt and just type pip install name_of_the_extension.
In this case, pip install httplib2 will install this package.
I believe you have pip installed on your computer, so it shouldn't be a problem to install the 4 packages you need.

Installing Aubio (python, windows)

I am having some trouble installing the aubio module for Python. According to the website, the following command typed into the command line should install the module:
pip install git+git://git.aubio.org/git/aubio
However, I only receive an error message "Cannot find git".
As the 2nd attempt, I downloaded the source files from the site, and again tried to install with PIP:
pip install c:/aubio #Anaconda32/sources as directory
I received an error message, "import error: no object named "gen_pyobject".
Finally I tried to use the exact method highlighted in the installation guide:
cd aubio
./waf configure build
Which returns an error message stating that waf is not an external or internal command or program.
I am running out of ideas, how can this extension actually be installed?
aubio should now build correctly on windows:
$ pip install aubio
it is being continuously tested for different windows configurations.
please open a new issue if you encounter a problem.

Categories

Resources