I have been trying many methods to install freqtrade in anaconda but I am always getting an error. The most simple code that I thought would work is:
pip install freqtrade
It only gives me the following error:
Building wheel for TA-Lib (setup.py): started
Building wheel for TA-Lib (setup.py): finished with status 'error'
Successfully built sdnotify yarl
Failed to build py-find-1st blosc TA-Lib
How can I install freqtrade directly from my Jupyter Notebook?
I have looked at the installation instructions on: https://www.freqtrade.io/en/2020.7/installation/#windows - Also with no success.
Thank you!
TA-Lib is a library written in C. It must be built on PC to prepare a binary .dll or.so files. The TA-Lib that freqtrade is trying to install is just a Python wrapper for this library. That's why it fail to build if original C library can't be found on PC. You better first build and install ta-lib from C sources, then pip install ta-lib to make sure it works. And then pip install freqtrade
I was able to install TA-Lib and freqtrade on Jupyter Notebook with following:
!wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
!tar -xzf ta-lib-0.4.0-src.tar.gz
%cd ta-lib/
!./configure --prefix=$HOME
!make
!make install
!TA_LIBRARY_PATH=~/lib TA_INCLUDE_PATH=~/include pip install ta-lib
!pip install freqtrade
Related
Whenever I try to install dlib using pip install dlib or pip3 install dlib, I get the following error message error
I have already downloaded cmake and cv2, and I have also added cmake bin to the environment variables, I am not sure what else I could do to get this working. My main point downloading dlib is to be able to use the face_recognition library.
Follow the article on the https://www.geeksforgeeks.org/how-to-install-dlib-library-for-python-in-windows-10/
Install CMake from its official website and make sure choose the right version according to your system configuration.
While installing CMake select Add CMake to the system PATH to avoid any error in the next steps.
Install the c++ compiler of the visual studio code community version.
Install cmake library pip install cmake.
Install dlib library pip install dlib.
conf:mac catalina,MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports),pycharm.
the error:
ERROR: Failed building wheel for mpi4py
Building wheel for zmq (setup.py) ... done
Created wheel for zmq: filename=zmq-0.0.0-py3-none-any.whl size=1264 sha256=be7f6ab763266c2291f5ca7998e3ad24e48a4e85c04a2aa09a7fd5531823ae5b
Stored in directory: /Users/mac/Library/Caches/pip/wheels/4d/41/3a/bfd4dafaf1c20a4d08ff78bfcab77fcc4cf98e97c7941ce77a
Successfully built baselines zmq
Failed to build mpi4py
ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects
Try updating pip before installation :
pip3 install --upgrade pip
Create new virtualenv clear the pip cache like below and try to install it again.
pip cache purge
I checked the documentation, it also says you need to install MPI implementation
I'm new in VS code and in coding in general, I've been trying to install transformers with the command pip install transformers and pip install transformers[tf-cpu] both didn't work, with the following error:
Building wheel for tokenizers (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\TevaJ\Desktop\Projects\venv\Scripts\python.exe' 'C:\Users\TevaJ\Desktop\Projects\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\TevaJ\AppData\Local\Temp\tmps54vamjd'
cwd: C:\Users\TevaJ\AppData\Local\Temp\pip-install-kolpujzg\tokenizers_befed87ed1a749f8a23369cfa56db8a2
Complete output (19 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\tokenizers
copying tokenizers\__init__.py -> build\lib.win-amd64-3.10\tokenizers
running build_ext
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
----------------------------------------
ERROR: Failed building wheel for tokenizers
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects
(venv) PS C:\Users\TevaJ\Desktop\Projects>
I looked up on google but I can't find a solution.
Does anyone know this error and how to fix it?
Solved.
Just had to install it from source without dependencies with PIP 619.
git clone https://github.com/huggingface/transformers.git
cd transformers
pip install -e .
Another possible solution - is install Rust compiler, make a restart and try pip install again.
I try the following command.It works
conda install -c huggingface transformers
I'm trying to install rasa-core on my windows 10 machine.
When installing with pip install, I get: Failed building wheel for Twisted
The same error appears when trying to install Twisted separately.
How could I solve this problem?
Download the .whl file from Unofficial Windows Binaries for Python Extension Packages
then after you are in the virtualenv
pip install C:\...yourpath...\Downlaods\<filename>
e.g.
pip install C:\...yourpath...\Downlaods\Twisted‑20.3.0‑cp38‑cp38‑win_amd64.whl
This worked for me..
Download Twister package from releases and install it eg.
pip install C:\...yourpath...\Downlaods\Twisted‑20.3.0‑cp38‑cp38‑win_amd64.whl
Install Twisted Using pip
Or Download https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted at this location
pip install Twisted-18.9.0-cp27-cp27m-win_amd64.whl
No conda install or Microsoft Studio.
Follow:
Download Twisted : https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
In CMD: cd C:\Users\USERNAME\Downloads
pip install Twisted-version.whl
If you don't already have Microsoft Visual C++ installed do so from the following link. Make sure you match the correct version for the Python you have installed.
https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_14.0_standalone:_Build_Tools_for_Visual_Studio_2017_.28x86.2C_x64.2C_ARM.2C_ARM64.29
Then install Twisted with: pip install Twisted[windows_platform]
Ensure you have [windows_platform] included.
I am trying to install ggplot for Python using
pip install ggplot
but I get an error message saying
I am using Python2.7 on Windows8. I looked at the suggestions and among other things tried the suggestion here
pip install wheel to install support for wheel files.
pip install ggplot-0.11.5-py2.py3-none-any.whl to install the wheel. I downloaded the whl file from here.
Upon doing this I got further messages saying:
Failed building wheel for scipy
Failed cleaning build for scipy
In addition I still get the original error message.
Please provide suggestions.
After trying all possible things suggested in various forums this is what worked for me:
Download numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl and scipy-0.18.1-cp27-cp27m-win_amd64.whl files from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy to C:\Python27\Scripts directory.
Run the following commands from the DOS command window in windows
pip install numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl
pip install scipy-0.18.1-cp27-cp27m-win_amd64.whl
They were both successfully installed.
Finally
pip install ggplot