Expand on direnv section
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 50/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- documentation
Hướng nghiên cứu
Tìm phần direnv ngay sau phần virtualenvwrapper và kiểm tra cách tài liệu xung quanh liên kết đến hướng dẫn cài đặt bên ngoài. Thêm liên kết direnv.net và các bước thiết lập virtualenvwrapper được cung cấp, sau đó xác minh rằng hướng dẫn đã render giải thích rõ việc kích hoạt khi vào và rời khỏi một thư mục dự án.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The direnv section simply refers the reader to direnv.net for Linux installation instructions (by the the site is not linked on the page). Since there are different ways to get direnv working depending on if you're using pyenv, virtualenv, or virtualenvwrapper, it seems reasonable to direct them to the site. However, after struggling with this myself I found the instructions not straightforward, especially for a new user.
Since the direnv section directly follows the virtualenvwrapper section, I suggest updating with the following instructions to get direnv working with virtualenvwrapper:
- Add the following to ~/.config/direnv/direnvrc
layout_virtualenv {
local venv_path="$1"
source ${venv_path}/bin/activate
}
layout_virtualenvwrapper {
local venv_path="${WORKON_HOME}/$1"
layout_virtualenv $venv_path
}
- Add the following to an .envrc file in the root directory of your project
layout virtualenvwrapper _name_of_virtual_environment_
Now, the virtual environment will activate when you enter the project directory and deactivate when you leave.
- Ngôn ngữ chính
- Batchfile
- Star
- 29.8k
- Fork
- 5.9k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của realpython/python-guide
-
Page 404 error Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
realpython/python-guide#1104 · 2 bình luận ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 62/100
realpython/python-guide#327 ·
-
PyZMQ improvements Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
realpython/python-guide#326 · 5 bình luận ·
-
@alex Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
realpython/python-guide#1194 ·
-
Development Team SAP Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
realpython/python-guide#1192 ·
Tất cả issue của realpython/python-guide
Issue tương tự
-
Link Checker Report Đang mởautomated issue report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
felladrin/uo-is-not-dead#176 · 1 bình luận ·
-
Add link for tutorial Đang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Qiskit/qiskit-addon-sqd#376 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Seeed-Studio/wiki-documents#5655 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
MystenLabs/sui#28056 · 1 bình luận ·