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::
|
||||
|
||||
cd datasette
|
||||
# Create a virtual environment in venv/
|
||||
python3 -mvenv venv
|
||||
# Create a virtual environment in ./venv
|
||||
python3 -m venv ./venv
|
||||
# Now activate the virtual environment, so pip can install into it
|
||||
source venv/bin/activate
|
||||
# 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".
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue