I installed Anaconda 2.7.1 successfully. Then I did what the PDF “Creating an Environment with a Specific Version of Python” says, in order to setup an environment quantra_py. I got an error about Matplotlib.
Here is the error message I got.
(base) C:\Users\TASOS>conda env create -f https://quantra.quantinsti.com/downloads/machinelearning/environment.yml
3 channel Terms of Service accepted
ERROR conda.plugins.manager:detect_environment_specifier(598): EnvironmentSpec hook: an error occurred when handling ‘https://quantra.quantinsti.com/downloads/machinelearning/environment.yml’ with plugin ‘explicit’. [Errno 22] Invalid argument: ‘https:\quantra.quantinsti.com\downloads\machinelearning\environment.yml’
Channels:
- conda-forge
- defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 25.11.1
latest version: 26.5.3
Please update conda by running
$ conda update -n base -c defaults conda
Downloading and Extracting Packages:
mkl-2026.0.0 | 109.1 MB | ############################################################################ | 100%
gensim-4.3.0 | 18.5 MB | ############################################################################ | 100%
scipy-1.10.1 | 17.8 MB | ############################################################################ | 100%
python-3.11.9 | 17.4 MB | ############################################################################ | 100%
llvmlite-0.43.0 | 16.3 MB | ############################################################################ | 100%
icu-78.3 | 14.3 MB | ############################################################################ | 100%
pandas-2.2.2 | 13.9 MB | ############################################################################ | 100%
scikit-learn-1.5.1 | 9.0 MB | ############################################################################ | 100%
openssl-3.6.3 | 9.0 MB | ############################################################################ | 100%
jupyterlab-4.2.3 | 7.5 MB | ############################################################################ | 100%
babel-2.18.0 | 7.3 MB | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: / Ran pip subprocess with arguments:
[‘C:\Users\TASOS\anaconda3\envs\quantra_py\python.exe’, ‘-m’, ‘pip’, ‘install’, ‘-U’, ‘-r’, ‘C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt’, ‘–exists-action=b’]
Pip subprocess output:
Collecting arch==7.0.0 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 1))
Downloading arch-7.0.0-cp311-cp311-win_amd64.whl.metadata (13 kB)
Collecting astunparse==1.6.3 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 2))
Downloading astunparse-1.6.3-py2.py3-none-any.whl.metadata (4.4 kB)
Collecting autopep8==2.3.1 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 3))
Downloading autopep8-2.3.1-py2.py3-none-any.whl.metadata (16 kB)
Collecting bert_serving_client==1.10.0 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 4))
Downloading bert_serving_client-1.10.0-py2.py3-none-any.whl.metadata (63 kB)
Collecting bert_serving_server==1.10.0 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 5))
Downloading bert_serving_server-1.10.0-py3-none-any.whl.metadata (63 kB)
Collecting bokeh==3.5.0 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 6))
Downloading bokeh-3.5.0-py3-none-any.whl.metadata (12 kB)
Collecting botometer==2.0.1 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 7))
Downloading botometer-2.0.1-py3-none-any.whl.metadata (277 bytes)
Collecting cryptocompare==0.7.6 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 8))
Downloading cryptocompare-0.7.6.tar.gz (6.0 kB)
Installing build dependencies: started
Installing build dependencies: finished with status ‘done’
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status ‘done’
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‘done’
Collecting cvxpy==1.5.2 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 9))
Downloading cvxpy-1.5.2-cp311-cp311-win_amd64.whl.metadata (9.1 kB)
Collecting fredapi==0.5.2 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 10))
Downloading fredapi-0.5.2-py3-none-any.whl.metadata (5.0 kB)
Collecting GoogleNews==1.6.14 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 11))
Downloading GoogleNews-1.6.14-py3-none-any.whl.metadata (3.9 kB)
Collecting graphviz==0.20.3 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 12))
Downloading graphviz-0.20.3-py3-none-any.whl.metadata (12 kB)
Collecting Historic_Crypto==0.1.6 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 13))
Downloading Historic_Crypto-0.1.6-py3-none-any.whl.metadata (3.8 kB)
Collecting hurst==0.0.5 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 14))
Downloading hurst-0.0.5-py3-none-any.whl.metadata (3.6 kB)
Collecting ipywidgets==8.1.3 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 15))
Downloading ipywidgets-8.1.3-py3-none-any.whl.metadata (2.4 kB)
Collecting matplotlib==3.9.1 (from -r C:\Users\TASOS\AppData\Local\Temp\condaenv.r_jkpzhq.requirements.txt (line 16))
Downloading matplotlib-3.9.1.tar.gz (36.1 MB)
---------------------------------------- 36.1/36.1 MB 6.0 MB/s 0:00:06
Installing build dependencies: started
Installing build dependencies: finished with status ‘done’
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status ‘done’
Installing backend dependencies: started
Installing backend dependencies: finished with status ‘done’
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): still running…
Preparing metadata (pyproject.toml): finished with status ‘error’
Pip subprocess error:
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [51 lines of output]
+ meson setup C:\Users\TASOS\AppData\Local\Temp\pip-install-a7i183cp\matplotlib_71352ed4da714d59811a3448a9ff8e43 C:\Users\TASOS\AppData\Local\Temp\pip-install-a7i183cp\matplotlib_71352ed4da714d59811a3448a9ff8e43.mesonpy-kv3ljqfm -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\TASOS\AppData\Local\Temp\pip-install-a7i183cp\matplotlib_71352ed4da714d59811a3448a9ff8e43.mesonpy-kv3ljqfm\meson-python-native-file.ini
The Meson build system
Version: 1.11.1
Source dir: C:\Users\TASOS\AppData\Local\Temp\pip-install-a7i183cp\matplotlib_71352ed4da714d59811a3448a9ff8e43
Build dir: C:\Users\TASOS\AppData\Local\Temp\pip-install-a7i183cp\matplotlib_71352ed4da714d59811a3448a9ff8e43.mesonpy-kv3ljqfm
Build type: native build
Program python3 found: YES
Activating VS 18.6.3
Project name: matplotlib
Project version: 3.9.1
C compiler for the host machine: cl (msvc 19.51.36246 “Microsoft (R) C/C++ Optimizing Compiler Version 19.51.36246 for x64”)
C linker for the host machine: link link 14.51.36246.0
C++ compiler for the host machine: cl (msvc 19.51.36246 “Microsoft (R) C/C++ Optimizing Compiler Version 19.51.36246 for x64”)
C++ linker for the host machine: link link 14.51.36246.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (C:\Users\TASOS\anaconda3\envs\quantra_py\python.exe)
Run-time dependency python found: YES 3.11
Did not find pkg-config by name ‘pkg-config’
Found pkg-config: NO
pybind11-config found: YES (C:\Users\TASOS\AppData\Local\Temp\pip-build-env-1_8f1uzv\overlay\Scripts\pybind11-config.EXE) 3.0.4
Run-time dependency pybind11 found: YES 3.0.4
Downloading freetype-2.6.1 source from https://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.6.1.tar.gz
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
WARNING: failed to download with error: could not get https://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.6.1.tar.gz; is the internet available?. Trying after a delay…
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
WARNING: failed to download with error: could not get https://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.6.1.tar.gz; is the internet available?. Trying after a delay…
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
WARNING: failed to download with error: could not get https://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.6.1.tar.gz; is the internet available?. Trying after a delay…
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
WARNING: failed to download with error: could not get https://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.6.1.tar.gz; is the internet available?. Trying after a delay…
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
WARNING: failed to download with error: could not get https://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.6.1.tar.gz; is the internet available?. Trying after a delay…
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
Downloading freetype-2.6.1 source from https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
WARNING: failed to download with error: could not get https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz; is the internet available?. Trying after a delay…
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
WARNING: failed to download with error: could not get https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz; is the internet available?. Trying after a delay…
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
WARNING: failed to download with error: could not get https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz; is the internet available?. Trying after a delay…
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
WARNING: failed to download with error: could not get https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz; is the internet available?. Trying after a delay…
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
WARNING: failed to download with error: could not get https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz; is the internet available?. Trying after a delay…
[ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4047)
ERROR: Subproject freetype-2.6.1 is buildable: NO
..\extern\meson.build:19:18: ERROR: could not get https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz; is the internet available?
A full log can be found at C:\Users\TASOS\AppData\Local\Temp\pip-install-a7i183cp\matplotlib_71352ed4da714d59811a3448a9ff8e43\.mesonpy-kv3ljqfm\meson-logs\meson-log.txt
[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.
╰─> matplotlib
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
failed
CondaEnvException: Pip failed
(base) C:\Users\TASOS>
=================================
Now Anaconda Navigator has an environment quandra_py, there I tried to install Matplotlib through Navigator interface and it was successful.
I try in my computer to write some lines of Python code using the new environment (quandra_py) and I get a new error, see below
(quantra_py) C:\Users\TASOS>python
Python 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:27:10) [MSC v.1938 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
import pandas as pd
import yfinance as yf
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘yfinance’
================================
Any idea what to do ???
Thank you in advance