areed1192 / portfolio-optimization Goto Github PK
View Code? Open in Web Editor NEWA python application, that demonstrates optimizing a portfolio using machine learning.
License: MIT License
A python application, that demonstrates optimizing a portfolio using machine learning.
License: MIT License
Good morning and thanks for your awesome tutorials and repos.
Here to say that I'm sorry but there is now way to have 'pip install' working in the Visual studio Code + Python installation as by your precise indication in your 4 videos serie regarding installing, Using .\ pip it starts to install but ot stops showing a long list of Not availabilities files.
PS D:\documenti\python\portfolio-optimization> .\pip install -e.
Obtaining file:///D:/documenti/python/portfolio-optimization
Collecting requests==2.24.0
Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting matplotlib==3.3.0
Using cached matplotlib-3.3.0-cp39-cp39-win_amd64.whl (8.8 MB)
Collecting numpy==1.19.0
Using cached numpy-1.19.0.zip (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\cinet\appdata\local\programs\python\python39\python.exe' 'c:\users\cinet\appdata\local\programs\python\python39\lib\site-packages\pip_vendor\pep517\in_process_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\cinet\AppData\Local\Temp\tmputrfbdj9'
cwd: C:\Users\cinet\AppData\Local\Temp\pip-install-gfrmj2rn\numpy_2c3a6f2179a647888c43dd1fd588f5e8
Complete output (200 lines):
Running from numpy source directory.
setup.py:460: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
run_build = parse_setuppy_commands()
Processing numpy/random_bounded_integers.pxd.in
Processing numpy/random\bit_generator.pyx
Processing numpy/random\mtrand.pyx
Processing numpy/random_bounded_integers.pyx.in
Processing numpy/random_common.pyx
Processing numpy/random_generator.pyx
Processing numpy/random_mt19937.pyx
Processing numpy/random_pcg64.pyx
Processing numpy/random_philox.pyx
Processing numpy/random_sfc64.pyx
Cythonizing sources
blas_opt_info:
blas_mkl_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries mkl_rt not found in ['c:\users\cinet\appdata\local\programs\python\python39\lib', 'C:\', 'c:\users\cinet\appdata\local\programs\python\python39\libs']
NOT AVAILABLE
blis_info:
libraries blis not found in ['c:\\users\\cinet\\appdata\\local\\programs\\python\\python39\\lib', 'C:\\', 'c:\\users\\cinet\\appdata\\local\\programs\\python\\python39\\libs']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['c:\\users\\cinet\\appdata\\local\\programs\\python\\python39\\lib', 'C:\\', 'c:\\users\\cinet\\appdata\\local\\programs\\python\\python39\\libs']
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifort
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Could not locate executable DF
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Could not locate executable gfortran
Could not locate executable f95
customize G95FCompiler
Could not locate executable g95
customize IntelEM64VisualFCompiler
customize IntelEM64TFCompiler
Could not locate executable efort
Could not locate executable efc
customize PGroupFlangCompiler
Could not locate executable flang
don't know how to compile Fortran code on platform 'nt'
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['c:\\users\\cinet\\appdata\\local\\programs\\python\\python39\\lib', 'C:\\', 'c:\\users\\cinet\\appdata\\local\\programs\\python\\python39\\libs']
NOT AVAILABLE
atlas_3_10_blas_info:
libraries satlas not found in ['c:\\users\\cinet\\appdata\\local\\programs\\python\\python39\\lib', 'C:\\', 'c:\\users\\cinet\\appdata\\local\\programs\\python\\python39\\libs']
NOT AVAILABLE
Note: IT KEEPS WITH SEVERAL OTHER ERROR MESSAGES.
It also indicates as error in the console for client.py: "Import "fake_useragent" could not be resolved." . }" If there are other installations to do please indicated it. Many thanks. {
"resource": "/d:/documenti/python/portfolio-optimization/pyopt/client.py",
"owner": "generated_diagnostic_collection_name#1",
"code": {
"value": "reportMissingImports",
"target": {
"$mid": 1,
"external": "https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md#diagnostic-severity-rules",
"path": "/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md",
"scheme": "https",
"authority": "github.com",
"fragment": "diagnostic-severity-rules"
}
},
"severity": 4,
"message": "Import "fake_useragent" could not be resolved",
"source": "Pylance",
"startLineNumber": 12,
"startColumn": 6,
"endLineNumber": 12,
"endColumn": 20
Hello, when runs, the script, copied by the video on Yt, finds this error:
NameError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_11624/522131220.py in
11 price_history_client = PriceHistory(
12 symbols = symbols,
---> 13 user_agent=UserAgent().edge
14 )
15
NameError: name 'UserAgent' is not defined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.