guowei121493's recent timeline updates
guowei121493

guowei121493

V2EX member #70896, joined on 2014-08-14 14:27:09 +08:00
guowei121493's recent replies
Nov 19, 2019
Replied to a topic by tomleung1996 Python 用 VSCode 开发 Scrapy 工程的包路径问题
搞了半天终于搞定了,比较坑爹的是 vscode 有两个 PYTHONPATH 的设置
1. 第一个是编辑器的位置也就是 python.exe 的位置。这个在 extension 的设置里可以找到。
2. 第二个是在项目目录下建立.env
里面写上 PYTHONPATH = ${workspaceFolder}/;${PYTHONPATH};
注意,根据你的系统来确定是;还是:作为分隔符,:是 linux 或 mac,;是 windows。
还有这个配置比较神奇,不要带引号

来个原文 https://code.visualstudio.com/docs/python/environments#_use-of-the-pythonpath-variable

另外看文章里说还有一种方式是可以配这以下几个配置,没有试。
The best way to specify a value for the PYTHONPATH variable is to use the terminal.integrated.env.linux, terminal.integrated.env.osx, or terminal.integrated.env.windows
hi, 请问你这里用的开发工具是什么版本?
不知道现在招聘情况如何了,好想进~
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4920 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 09:53 · PVG 17:53 · LAX 02:53 · JFK 05:53
♥ Do have faith in what you're doing.