mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
"python3 -m pip" is clearer (thanks @jaap3) (#368)
This commit is contained in:
parent
553314dcd6
commit
f853d5592e
1 changed files with 3 additions and 3 deletions
|
|
@ -33,12 +33,12 @@ If you just want to get started without creating your own fork, you can do this
|
||||||
The next step is to create a virtual environment for your project and use it to install Datasette's dependencies::
|
The next step is to create a virtual environment for your project and use it to install Datasette's dependencies::
|
||||||
|
|
||||||
cd datasette
|
cd datasette
|
||||||
# Create a virtual environment in venv/
|
# Create a virtual environment in ./venv
|
||||||
python3 -mvenv venv
|
python3 -m venv ./venv
|
||||||
# Now activate the virtual environment, so pip can install into it
|
# Now activate the virtual environment, so pip can install into it
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
# Install Datasette and its testing dependencies
|
# Install Datasette and its testing dependencies
|
||||||
pip install -e .[test]
|
python3 -m pip -e .[test]
|
||||||
|
|
||||||
That last line does most of the work: ``pip install -e`` means "install this package in a way that allows me to edit the source code in place". The ``.[test]`` option means "use the setup.py in this directory and install the optional testing dependencies as well".
|
That last line does most of the work: ``pip install -e`` means "install this package in a way that allows me to edit the source code in place". The ``.[test]`` option means "use the setup.py in this directory and install the optional testing dependencies as well".
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue