pip fails to install packages from requirements.txt

I am trying to install a python software using the requirements file. >> cat...

Cant install PyTables at windows

I try to install the PyTables module. I use Windows 7 (x32), Python 2.7.3 (x32), Cython 0.16, Visual Studio 2008 (9.0). At cmd.exe 'run as administrator' write: 'python setup.py install...

`pip install tables` fail with ERROR:: Could not find a local HDF5 installation

Here's the detailed error message I am getting when I attempt to install PyTables on Mac OSX. calvin$ pip install tables Downloading/unpacking tables Downloading tables-2.4.0.tar.gz (8.9MB):...

Manage python packages in Sublime text 3

Working with Ubuntu 14.04 How to tell Sublime text 3 and SublimeREPL where to look for the python packages? From my terminal, pip list returns a list with many python packages like that: numexpr...

When to use DataFrame.eval() versus pandas.eval() or Python eval()

I have a few dozen conditions (e.g., foo > bar) that I need to evaluate on ~1 MM rows of a DataFrame, and the most concise way of writing this is to store these conditions as a list of strings and...

one hot encoding for frequent values only

I am looking to do one hot encoding to a column, but only for those that are very frequent. All that are below a threshold T will be put in their own category. My strategy was to create a...

TypeError: __init__() got an unexpected keyword argument 'encoding'

Attempting a scrape of table data using pandas in Python 3.6 using Spyder3 on a MacBook Pro OS v10.13.2 (17C88). The code is: import pandas as pd ... url =...

pip3 install not working - No module named 'pip._vendor.pkg_resources'

When trying to install a package for Python 3 (in Ubuntu), using pip3 install packageName (or sudo pip3 install packageName), I get the following error message: Traceback (most recent call last): ...

USQL + Python Extension library

Does usql python extension support sci-kitlearn library? The webpage https://docs.microsoft.com/en-us/azure/data-lake-analytics/data-lake-analytics-u-sql-python-extensions mention only numpy,...

Speeding up Mahalanobis distance calculation

Background: I am implementing a Sequential Backward Selection algorithm to select features from a dataset. The dataset in question is MNIST. I have 60000 vectors of length 784. The algorithm...

WEBP support not installed error with Pillow included in Anaconda

I have written a small code to open webp image in the Anaconda prompt. from PIL import Image im = Image.open('test.webp') It causes the following...

"AssertionError: Torch not compiled with CUDA enabled" in spite upgrading to CUDA version

I figured out this is a popular question, but still I couldn't find a solution for that. I'm trying to run a simple repo Here which uses PyTorch. Although I just upgraded my Pytorch to the latest...

UnsatisfiableError: The following specifications were found to be incompatible with each other:

I am running on Ubuntu 16.04 and I have run into issues with Anaconda. Due to package inconsistencies, I can no longer install, update or remove packages. $ conda info NVIDIA: no NVIDIA devices...

ERROR: You must give at least one requirement to install -- when running: pip install --upgrade --no-binary hdbscan

I am trying to install hdbscan in my PC which runs Windows 10 and has installed Python 3.6. My first attempt failed: (base) C:\WINDOWS\system32>pip install hdbscan --user Collecting hdbscan ...

virtualenv: pre-installed with packages on creating virtual environment

I created a virtual environment using command virtualenv env on my terminal. On using pip freeze > requirements.txt after activating the virtual environment, I was a bunch of packages...

Why does `conda list cudnn` have no output after `conda install pytorch torchvision cudatoolkit=10.2 -c pytorch` installation

*Please feel free to vote "Reopen" at the bottom of this question. The reason is that I have marked this as a duplicate although the answers there are not clear enough for this question.* As soon...

Sympy lambdify ImmutableDenseMatrix with numexpr

I try to accelerate the evaluation of a MutableDenseMatrix using lambdify. It works with the module 'numpy'. 'Numexpr' should be faster (as I need the evaluation to solve a large optimization...

Trouble installing turbodbc

I am attempting to install turbodbc on my Ubuntu 20.10 machine. My specs are as follows: pip 20.2.4, Python 3.8.5 , gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0 I have attempted the solutions provided in...

Failed to run TA-lib Python on Heroku

I want to deploy an app using Heroku but it did not manage to build it. See my build logs under this message. It looks that my problem is that it cannot load/install Ta-Lib (package that I want to...

pandas styling doesn't display for all rows in large dataframes in Chrome or Edge

Update: The issue seems to be with displaying the HTML with styling rendered by pandas in Google Chrome and Microsoft Edge. JupyterLab in Firefox correctly displays all of the styled rows and...

This version of ChromeDriver only supports Chrome version 87 Current browser version is 90.0.4430.93

ChromeDriver is giving an error about its version being too low: This version of ChromeDriver only supports Chrome version 87 Current browser version is 90.0.4430.93. I've updated pip's packages...

How to combine queries with a single external variable using Pandas

I am trying to accept a variable input of many search terms seperated by commas via html form (@search) and query 2 columns of a dataframe. Each column query works on its own but I cannot get them...

Colab Error: cannot import name '_NUMEXPR_INSTALLED'

I am using Google Colab and trying to use PyLDAvis to visualize a topic modelling model made from gensim. The python code was working fine but has suddenly started to give me the...

Sudden Tensorflow / Keras Google Colab dependency problems `AttributeError: module 'tensorflow._api.v1.compat.v2' has no attribute '__internal__'`

I have running a machine learning model (Matterport's Mask R-CNN) in google colab for a couple of weeks. All of a sudden today I am unable to run any of my notebooks due to I think some kind of...

Pandas Read Excel, or faster method

I didn't find any related thread. I have a not so big Excel file (100 MB), but quite large (ie 930 columns for 35k rows), and that's my problem. Excel read this file in a second, but pandas took...

How to install PyCaret in AWS Glue

How can I properly install PyCaret in AWS Glue? Methods I tried: --additional-python-modules and --python-modules-installer-option Python library path easy_install as described in...

AttributeError: module 'regex' has no attribute 'Pattern'

I'm getting this error while trying to run this code in google colab: !pip install dataprep from dataprep.eda import create_report Error: NumExpr defaulting to 2...

Getting DLL error when running tensorflow/keras program on python gpu 3.8

I am trying to run my simple AI program but I keep getting this DLL error: ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a...

Is there any way to optimize a triple loop in Python by using numpy or other ressources?

I'm having trouble finding out a way to optimize a triple loop in Python. I will directly give the code for a better and simpler representation of what I have to compute : Given two 2-D arrays...

How to accelerate my written python code: function containing nested functions

I have written the following NumPy code by Python: def inbox_(points, polygon): """ Finding points in a region """ ll = np.amin(polygon, axis=0) # lower limit ...

Relevant tags