installing fastkde library in Python - python-3.x

I want to install fastkde library and I did actually everything on web but I am yet able to install this. I constantly get this error in terminal:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4ff4dzcb/fastkde/
Can anybody help me with this?

If you've pip installed which is true for all distributions downloaded from here, then just key in the commands in your terminal given below.
pip3 install fastkde

Related

Unable to Install Jupyter due to legacy-install-error with psutil package

I was previously running into environment inconsistencies after downloading tensorflow with pip in a conda environment, and after several hours of frustration, decided deleting anaconda/miniconda and python and starting from scratch would be my best option to get python working again (The inconsistencies were causing a plethora of issues with loading other modules like numpy, etc).
After downloading Python version 3.9.10 directly from https://www.python.org/downloads/macos/, I wanted to see if I could start using Python again in a Jupyter notebook in VS Code. When I try to run a simple print('hello world') in a python chunk I (unsurprisingly) get the following error:
Jupyter cannot be started. Error attempting to locate jupyter: Running cells with 'Python 3.9.10 64-bit' requires notebook package.
Run the following command to install 'jupyter and notebook' into the Python environment.
Command: 'python -m pip install jupyter notebook -U'
I was pretty much expecting this error, since I knew I had deleted all packages when deleting Anaconda and Python.
However, when I try running python -m pip install jupyter notebook -U in the terminal I ultimately get the following error:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/gcc' failed with exit code 1
[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.
╰─> psutil
note: This is an issue with the package mentioned above, not pip.
Any help or insight is greatly appreciated! I am on MacOS (M1) if that is useful information.
The problem seems to be with the python3 distribution that comes with MacOSX Command Line Tools. Well, at least that same error was gone after following these steps.
So, to fix the problem I installed python3.9 (I presume you can change 3.9 to your desired version, e.g. 3.8 or 3.10) using Homebrew.
Install Homebrew (to check if it's installed already just type brew --version in the terminal):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install python3.9
brew install python#3.9
Create your virtual environment
python3.9 -m venv myvenv
Activate the virtual environment with source myvenv/bin/activate
Finally, install Jupyter using
(myvenv) pip install jupyter notebook
I have the same problem when installing the Jupyter notebook on MacOS 12.5 M2 chip. It turns out that the error is caused by not having GCC on my mac to run the wheel for installing the psutil package because for some reason I removed my XCode from my Mac. So I installed XCode from AppStore and opened XCode after the installation to agree to its terms and conditions. After Xcode went through the setup process I tried pip install jupyter again and it worked well.
In my case, I just opened the XCode, accept the terms and the installation proposed, and tried to install the jupyter again and it worked!
It seems to be very particular about the version of python installed. I set up a fresh installation on a new box this morning and put 3.11 on there. pip install jupyterlabs gave me the same error as you got. I then uninstalled python and installed an earlier version, and now it works.
PS the older version that worked for me is 3.10.8

How to install audiodiff?

So i am trying to install audiodiff via anaconda prompt. The error i keep getting is related to mutagen. But i have installed mutagenwrapper and mutagen and its their installation that i think is causing the issue has anyone else had that issue and solved it?
The error I get is command "python setup.py egg info" failed with error code 1 in C:\Users\TEST\AppData\Local\Temp\pip-install-0rsg6wwr\mutagen\
However if i try to install mutagen it just says requirement already satisfied.
It is only supported in python 2.7

Unable to install git repo by pip

I am trying to install a git repo's master branch source by pip and I am using the command
pip install git+https://github.com/apache/systemml/#master#egg=systemml&subdirectory=src/main/python
But I encountered the error:
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\test\AppData\Local\Temp\pip-install-3hqjwj06\systemml\
'subdirectory' is not recognized as an internal or external command,
operable program or batch file.
So I researched about it and found the StackOverFlow
question and followed the following steps of the most upvoted answer but it didn't work in my case. I also tried installing python 3.6 and it also did not help.
I am using Windows OS and 3.7 python
Any help is appreciated.

pypy3 import psycopg2 error (undefined symbol: PyCoder_Encoder)

I installed psycopg2 to pypy3(Python3.5.3) by the following code on Ubuntu16.04:
pypy3 -m pip install psycopg2
However, I got some errors:
Error:b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-epd368s6/psycopg2
And I found the solution in "You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application".
My computer has already installed Postgresql9.5, so I used these commands to install:
sudo apt-get install libpq-dev
pypy3 -m pip install psycopg2
No error was reported, but when I tried "import psycopg2", I got ImportError:
enter image description here
I found the same error in "pypy3 import psycopg2 error (PyCodec_Encoder)", but I did not found a solution.
Do someone know how to fix it?
The PyPy issue you pointed to contains the answer "Someone will have to implement the missing function (and the other missing PyCodec_* functions. Currently we only implement very few in codec.py. The implementation is quite straight-forward based on the pattern in the functions implemented, the harder part is writing tests.
There is the psycopg2cffi package, which should work on PyPy and will be faster. Perhaps give it a try and comment here if it serves your needs.
psycopg2-binary works with latest version of PyPy 3.6 (nightly build from 2020-01-23) as it contains the PyCodec_Encoder and PyCodec_Decoder implementations.

unable to install some python modules

I am working on windows 8.1 .When i try to install some python(python 3.4) modules and packages like IMDBPY using pip :
pip install imdbpy
I get the following error code:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ISHAN~1.
NIT\AppData\Local\Temp\pip-build-uyc40bdk\imdbpy.
This same error message is occurring with many python modules and packages.
Although i have checked other similar questions on stack overflow but they could not solve my problem.

Resources