mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE] Remove dangling # in contributing.md (#152259)
I frequently come to CONTRIBUTING.md to copy paste the below snippet to rebuild pytorch which in zsh gives this error because zsh interprets # as a command. These comments add nothing so just removing ``` error: pathspec 'sync' did not match any file(s) known to git error: pathspec 'the' did not match any file(s) known to git error: pathspec 'submodules' did not match any file(s) known to git Building wheel torch-2.8.0a0+git9c01c87 invalid command name '#' ``` ``` git submodule update --init --recursive # very important to sync the submodules python setup.py develop # then try running the command again git submodule update --init --recursive python setup.py develop ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/152259 Approved by: https://github.com/janeyx99
This commit is contained in:
committed by
PyTorch MergeBot
parent
de20d76622
commit
a77a44761b
@ -130,8 +130,8 @@ source venv/bin/activate # or `& .\venv\Scripts\Activate.ps1` on Windows
|
||||
git submodule deinit -f .
|
||||
git clean -xdf
|
||||
python setup.py clean
|
||||
git submodule update --init --recursive # very important to sync the submodules
|
||||
python setup.py develop # then try running the command again
|
||||
git submodule update --init --recursive
|
||||
python setup.py develop
|
||||
```
|
||||
4. The main step within `python setup.py develop` is running `make` from the `build` directory. If you want to
|
||||
experiment with some environment variables, you can pass them into the command:
|
||||
|
Reference in New Issue
Block a user