mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-08 04:23:35 +00:00
feat: Support windows
fix: Fix install error on linux doc: Add torch cuda FAQ
This commit is contained in:
@@ -45,4 +45,39 @@ print(f'Public url: {url}')
|
||||
time.sleep(60 * 60 * 24)
|
||||
```
|
||||
|
||||
Open `url` with your browser to see the website.
|
||||
Open `url` with your browser to see the website.
|
||||
|
||||
##### Q5: (Windows) execute `pip install -e .` error
|
||||
|
||||
The error log like the following:
|
||||
```
|
||||
× python setup.py bdist_wheel did not run successfully.
|
||||
│ exit code: 1
|
||||
╰─> [11 lines of output]
|
||||
running bdist_wheel
|
||||
running build
|
||||
running build_py
|
||||
creating build
|
||||
creating build\lib.win-amd64-cpython-310
|
||||
creating build\lib.win-amd64-cpython-310\cchardet
|
||||
copying src\cchardet\version.py -> build\lib.win-amd64-cpython-310\cchardet
|
||||
copying src\cchardet\__init__.py -> build\lib.win-amd64-cpython-310\cchardet
|
||||
running build_ext
|
||||
building 'cchardet._cchardet' extension
|
||||
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
|
||||
[end of output]
|
||||
```
|
||||
|
||||
Download and install `Microsoft C++ Build Tools` from [visual-cpp-build-tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)
|
||||
|
||||
|
||||
|
||||
##### Q6: `Torch not compiled with CUDA enabled`
|
||||
|
||||
```
|
||||
2023-08-19 16:24:30 | ERROR | stderr | raise AssertionError("Torch not compiled with CUDA enabled")
|
||||
2023-08-19 16:24:30 | ERROR | stderr | AssertionError: Torch not compiled with CUDA enabled
|
||||
```
|
||||
|
||||
1. Install [CUDA Toolkit](https://developer.nvidia.com/cuda-toolkit-archive)
|
||||
2. Reinstall PyTorch [start-locally](https://pytorch.org/get-started/locally/#start-locally) with CUDA support.
|
@@ -102,6 +102,11 @@ You can configure basic parameters in the .env file, for example setting LLM_MOD
|
||||
bash ./scripts/examples/load_examples.sh
|
||||
```
|
||||
|
||||
On windows platform:
|
||||
```PowerShell
|
||||
.\scripts\examples\load_examples.bat
|
||||
```
|
||||
|
||||
1.Run db-gpt server
|
||||
|
||||
```bash
|
||||
|
Reference in New Issue
Block a user