mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-06 01:12:27 +00:00
Merge pull request #395 from DidierRLopes/troubleshoot
Troubleshoot page to help new users install the terminal
This commit is contained in:
84
README.md
84
README.md
@@ -59,8 +59,6 @@
|
||||
<ul>
|
||||
<li><a href="#install">Install</a></li>
|
||||
<li><a href="#advanced-user-install---machine-learning">Advanced User Install - Machine Learning</a></li>
|
||||
<li><a href="#other-issues">Other Issues</a></li>
|
||||
<li><a href="#modulenotfounderror">ModuleNotFoundError</a></li>
|
||||
<li><a href="#update-terminal">Update Terminal</a></li>
|
||||
<li><a href="#api-keys">API Keys</a></li>
|
||||
<li><a href="#usage">Usage</a></li>
|
||||
@@ -94,6 +92,11 @@ This project was originally written and tested with Python 3.6.8. It should now
|
||||
|
||||
Our current recommendation is to use this project with Anaconda's Python distribution - either full [__Anaconda3 Latest__](https://repo.anaconda.com/archive/) or [__Miniconda3 Latest__](https://repo.anaconda.com/archive/). Several features in this project utilize Machine Learning. Machine Learning Python dependencies are optional. If you decided to add Machine Learning features at a later point, you will likely have better user experience with Anaconda's Python distribution.
|
||||
|
||||
0. Star the project
|
||||
|
||||
<img width="1272" alt="Captura de ecrã 2021-04-25, às 01 13 30" src="https://user-images.githubusercontent.com/25267873/115989986-e20cfe80-a5b8-11eb-8182-d6d87d092252.png">
|
||||
|
||||
|
||||
1. Install Anaconda
|
||||
|
||||
Confirm that you have it with: `conda -V`. The output should be something along the lines of: `conda 4.9.2`
|
||||
@@ -110,45 +113,52 @@ conda create -n gst python=3.6.8
|
||||
```
|
||||
conda activate gst
|
||||
```
|
||||
Note: At the end, you can deactivate it with: `conda deactivate`
|
||||
Note: At the end, you can deactivate it with: `conda deactivate`.
|
||||
|
||||
4. Install git
|
||||
```
|
||||
conda install -c anaconda git
|
||||
````
|
||||
|
||||
5. Fork the Project
|
||||
5. Clone the Project
|
||||
|
||||
- Via HTTPS: `git clone https://github.com/DidierRLopes/GamestonkTerminal.git`
|
||||
- via SSH: `git clone git@github.com:DidierRLopes/GamestonkTerminal.git`
|
||||
|
||||
Navigate into the folder with: `cd GamestonkTerminal/`
|
||||
6. Navigate into the project's folder
|
||||
|
||||
6. Install poetry
|
||||
```
|
||||
cd GamestonkTerminal/
|
||||
```
|
||||
|
||||
7. Install poetry
|
||||
```
|
||||
conda install poetry
|
||||
```
|
||||
|
||||
6.5. If installing python 3.8
|
||||
7.5. If installing python 3.8
|
||||
```
|
||||
conda deactivate
|
||||
conda activate gst
|
||||
```
|
||||
*The `conda deactivate` -> `conda activate` in the middle is on purpose, this is sometimes required to avoid issues with poetry*
|
||||
|
||||
|
||||
7. Install poetry dependencies
|
||||
8. Install poetry dependencies
|
||||
```
|
||||
poetry install
|
||||
```
|
||||
This is a library for package management, and ensures a smoother experience than: ``pip install -r requirements.txt``
|
||||
|
||||
8. You're ready to Gamestonk it!
|
||||
9. You're ready to Gamestonk it!
|
||||
|
||||
```
|
||||
python terminal.py
|
||||
```
|
||||
|
||||
**NOTE:** When you close the terminal and re-open it, the only command you need to re-call is `conda activate gst` before you call `python terminal.py` again.
|
||||
|
||||
**TROUBLESHOOT:** If you are having troubles to install, check our *newest* <a href="https://github.com/DidierRLopes/GamestonkTerminal/blob/main/TROUBLESHOOT.md"><strong>troubleshoot page</strong></a>
|
||||
|
||||
### Advanced User Install - Machine Learning
|
||||
|
||||
If you are an advanced user and use other Python distributions, we have several requirements.txt documents that you can pick from to download project dependencies.
|
||||
@@ -166,13 +176,6 @@ ENABLE_PREDICT = os.getenv("GTFF_ENABLE_PREDICT") or True
|
||||
```
|
||||
poetry install -E prediction
|
||||
```
|
||||
*If you run into issues installing or `Cannot convert a symbolic Tensor...` at runtime, try this:*
|
||||
|
||||
```
|
||||
conda install -c conda-forge fbprophet numpy=1.19.5 hdf5=1.10.5
|
||||
poetry install
|
||||
poetry install -E prediction
|
||||
```
|
||||
|
||||
*If you would like to set up a docker image:*
|
||||
|
||||
@@ -181,53 +184,6 @@ poetry install -E prediction
|
||||
|
||||
Note: The problem with docker is that it won't output matplotlib figures.
|
||||
|
||||
*Commands that may help you in case of an error:
|
||||
|
||||
* `python -m pip install --upgrade pip`
|
||||
* `pip install pystan --upgrade`
|
||||
* `poetry update --lock`
|
||||
|
||||
### Other Issues
|
||||
|
||||
If you run into trouble with poetry and the advice above did not help, your best bet is to try
|
||||
|
||||
1. `poetry update --lock`
|
||||
|
||||
2. `conda deactivate` -> `conda activate gst`, then try again
|
||||
|
||||
3. Delete the poetry cache, then try again
|
||||
|
||||
| Platform | Location |
|
||||
| -------- | ------------------------------- |
|
||||
| Linux | "~/.cache/pypoetry" |
|
||||
| Mac | "~/Library/Caches/pypoetry" |
|
||||
| Windows | "%localappdata%/pypoetry/cache" |
|
||||
|
||||
4. Track down the offensive package and purge it from your anaconda `<environment_name>` folder, then try again (removing through conda can sometimes leave locks behind)
|
||||
|
||||
| Platform | Location |
|
||||
| --------- | -------------------------------------------- |
|
||||
| Linux/Mac | "~/anaconda3/envs" or "~/opt/anaconda3/envs" |
|
||||
| Windows | "%userprofile%/anaconda3/envs" |
|
||||
|
||||
5. Completely nuke your conda environment folder and make a new environment from scratch
|
||||
|
||||
6. Reboot your computer and try again
|
||||
|
||||
7. Submit a ticket on github
|
||||
|
||||
### ModuleNotFoundError
|
||||
|
||||
In the case when you run into an error of the form `ModuleNotFoundError: No module named '_______'`. The solution is to
|
||||
install the missing package via pip.
|
||||
|
||||
If you get the error that `statsmodels` is not found, you would run
|
||||
* `pip install statsmodels`
|
||||
|
||||
Then please submit an issue so that we can address why that was not imported.
|
||||
|
||||
Please note that the package `pmdarima` needs to installed through `pip install` and not through `conda install`.
|
||||
|
||||
### Update Terminal
|
||||
|
||||
The terminal is constantly being updated with new features and bug fixes, hence, for your terminal to be update, you can run:
|
||||
|
||||
136
TROUBLESHOOT.md
Normal file
136
TROUBLESHOOT.md
Normal file
@@ -0,0 +1,136 @@
|
||||
|
||||
# TROUBLESHOOT
|
||||
|
||||
If you are visiting this page it means that you're having issues installing. We deeply apologize for that.
|
||||
|
||||
Since the start of the project we've come across different types of issues experienced by the users. This page tries to combine issues, and their solutions. This will allow to give the best install experience to everyone regardless of any programming skills.
|
||||
|
||||
<ol>
|
||||
<li>
|
||||
<a href="#">Standard Install Troubles</a>
|
||||
<ul>
|
||||
<li><a href="#microsoft-visual-v++">Microsoft Visual C++</a></li>
|
||||
<li><a href="#wheel">Wheel</a></li>
|
||||
<li><a href="#cvxpy">Cvxpy</a></li>
|
||||
<li><a href="#numpy">Numpy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">ModuleNotFoundError Trouble</a>
|
||||
<ul>
|
||||
<li><a href="#general">General</a></li>
|
||||
<li><a href="#pypfopt">pypfopt</a></li>
|
||||
<li><a href="#dotenv">dotenv</a></li>
|
||||
<li><a href="#ally">ally</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#machine-learning-troubles">Machine Learning Troubles</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#other-issues">Other Issues</a>
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
|
||||
## Standard Install Troubles
|
||||
|
||||
### Microsoft Visual C++
|
||||
|
||||
If your terminal has too many red error lines, it is likely that this is the issue. Go to this page and install the c++ build tools:
|
||||
https://answers.microsoft.com/en-us/windows/forum/windows_other-windows_install/microsoft-visual-c-140/6f0726e2-6c32-4719-9fe5-aa68b5ad8e6d
|
||||
|
||||
|
||||
### Wheel
|
||||
|
||||
`conda install -c conda-forge wheel` or `pip install wheel`
|
||||
|
||||
|
||||
### Cvxpy
|
||||
|
||||
```
|
||||
conda install -c conda-forge cvxpy
|
||||
```
|
||||
|
||||
### Numpy
|
||||
|
||||
```
|
||||
pip install --upgrade numpy==1.20.2
|
||||
```
|
||||
|
||||
|
||||
## ModuleNotFoundError Trouble
|
||||
|
||||
### General
|
||||
|
||||
In the case when you run into an error of the form `ModuleNotFoundError: No module named '_______'`. The solution is to
|
||||
install the missing package via pip.
|
||||
|
||||
If you get the error that `yfinance` is not found, you would run
|
||||
* `pip install yfinance`
|
||||
|
||||
Then please submit an issue so that we can address why that was not imported.
|
||||
|
||||
Please note that the package `pmdarima` needs to installed through `pip install` and not through `conda install`.
|
||||
|
||||
### pypfopt
|
||||
```
|
||||
pip install PyPortfolioOpt
|
||||
```
|
||||
|
||||
### dotenv
|
||||
```
|
||||
pip install python-dotenv
|
||||
```
|
||||
|
||||
### ally
|
||||
```
|
||||
pip install pyally
|
||||
```
|
||||
|
||||
|
||||
### Machine Learning Troubles
|
||||
|
||||
If you run into issues installing or `Cannot convert a symbolic Tensor...` at runtime, try this:
|
||||
|
||||
```
|
||||
conda install -c conda-forge fbprophet numpy=1.19.5 hdf5=1.10.5
|
||||
poetry install
|
||||
poetry install -E prediction
|
||||
```
|
||||
|
||||
*Commands that may help you in case of an error:*
|
||||
|
||||
* `python -m pip install --upgrade pip`
|
||||
* `pip install pystan --upgrade`
|
||||
* `poetry update --lock`
|
||||
|
||||
|
||||
### Other Issues
|
||||
|
||||
If you run into trouble with poetry and the advice above did not help, your best bet is to try
|
||||
|
||||
1. `poetry update --lock`
|
||||
|
||||
2. `conda deactivate` -> `conda activate gst`, then try again
|
||||
|
||||
3. Delete the poetry cache, then try again
|
||||
|
||||
| Platform | Location |
|
||||
| -------- | ------------------------------- |
|
||||
| Linux | "~/.cache/pypoetry" |
|
||||
| Mac | "~/Library/Caches/pypoetry" |
|
||||
| Windows | "%localappdata%/pypoetry/cache" |
|
||||
|
||||
4. Track down the offensive package and purge it from your anaconda `<environment_name>` folder, then try again (removing through conda can sometimes leave locks behind)
|
||||
|
||||
| Platform | Location |
|
||||
| --------- | -------------------------------------------- |
|
||||
| Linux/Mac | "~/anaconda3/envs" or "~/opt/anaconda3/envs" |
|
||||
| Windows | "%userprofile%/anaconda3/envs" |
|
||||
|
||||
5. Completely nuke your conda environment folder and make a new environment from scratch
|
||||
|
||||
6. Reboot your computer and try again
|
||||
|
||||
7. Submit a ticket on github
|
||||
Reference in New Issue
Block a user