Merge pull request #388 from DidierRLopes/improve-install

Improve install
This commit is contained in:
DidierRLopes
2021-04-24 00:47:36 +01:00
committed by GitHub
2 changed files with 16 additions and 8 deletions

View File

@@ -111,19 +111,24 @@ conda activate gst
```
Note: At the end, you can deactivate it with: `conda deactivate`
4. Fork the Project
4. Install git
```
conda install -c anaconda git
````
5. Fork 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/`
5. Install poetry
6. Install poetry
```
conda install poetry
```
5.5. If installing python 3.8
6.5. If installing python 3.8
```
conda deactivate
conda activate gst
@@ -131,13 +136,13 @@ conda activate gst
*The `conda deactivate` -> `conda activate` in the middle is on purpose, this is sometimes required to avoid issues with poetry*
6. Install poetry dependencies
7. Install poetry dependencies
```
poetry install
```
This is a library for package management, and ensures a smoother experience than: ``pip install -r requirements.txt``
7. You're ready to Gamestonk it!
8. You're ready to Gamestonk it!
```
python terminal.py

View File

@@ -92,9 +92,12 @@ def main():
menu_parser.add_argument("opt", choices=choices)
completer = NestedCompleter.from_nested_dict({c: None for c in choices})
if os.name == "nt":
sys.stdin.reconfigure(encoding="utf-8")
sys.stdout.reconfigure(encoding="utf-8")
try:
if os.name == "nt":
sys.stdin.reconfigure(encoding="utf-8")
sys.stdout.reconfigure(encoding="utf-8")
except Exception as e:
print(e, "\n")
# Print first welcome message and help
print("\nWelcome to Gamestonk Terminal 🚀\n")