Git Product home page Git Product logo

Comments (8)

formulahendry avatar formulahendry commented on May 19, 2024

"c:\Users\Administrator\Desktop\中文\temp-fuopntmsyc.py" python文件的路径里面有中文字符,你试试看没有中文路径的

from vscode-code-runner.

formulahendry avatar formulahendry commented on May 19, 2024

应该是Python.exe的路径有空格,改成下面的试试

"code-runner.executorMap": 
{ 
"python": "\"C:\\Program Files\\Python35\\python.exe\"" 
}

from vscode-code-runner.

zhaohaixin avatar zhaohaixin commented on May 19, 2024

换成英文路径 文件名后 还是老问题,更改path路径 程序读不出python地址。我在run内只配置了python 路径 其他没有配置过 按你们提供的方法 右键点击代码 运行就出现了这些错误。

发自我的 iPhone

在 2016年9月13日,下午6:16,Jun Han [email protected] 写道:

应该是Python.exe的路径有空格,改成下面的试试
"code-runner.executorMap":
{
"python": ""C:\Program Files\Python35\python.exe""
}


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from vscode-code-runner.

formulahendry avatar formulahendry commented on May 19, 2024

Solution#1:
你把python 路径加到环境变量里,就不用任何配置了

Solution#2:
你试下把[Running]后面的命令放到cmd去run,看看有没有一样的问题:
"C:\Program Files\Python35\python.exe" "c:\Users\Administrator\Desktop\中文\*******.py"

还有,你"C:\Program Files\Python35\python.exe"加双引号了吗?当中有空格的话,肯定会fail

from vscode-code-runner.

zhaohaixin avatar zhaohaixin commented on May 19, 2024

谢谢 我有添加系统环境变量 所以没必要再去修改插件上的python路径 这样就可以run了。 还有个问题 我在使用input后 在输出里面怎么输入数据呢?

发自我的 iPhone

在 2016年9月14日,上午10:58,Jun Han [email protected] 写道:

Solution#1:
你把python 路径加到环境变量里,就不用任何配置了

Solution#2:
你试下把[Running]后面的命令放到cmd去run,看看有没有一样的问题:
"C:\Program Files\Python35\python.exe" "c:\Users\Administrator\Desktop\中文*******.py"

还有,你"C:\Program Files\Python35\python.exe"加双引号了吗?当中有空格的话,肯定会fail


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from vscode-code-runner.

formulahendry avatar formulahendry commented on May 19, 2024

Input目前还不支持 现在有issue #17 在track

from vscode-code-runner.

formulahendry avatar formulahendry commented on May 19, 2024

@zhaohaixin , I have added support to read user input now. Please install the latest version, and set code-runner.runInTerminal as true and then have a try:

{
    "code-runner.runInTerminal": true
}

from vscode-code-runner.

zhaohaixin avatar zhaohaixin commented on May 19, 2024

Thanks,that is awesome

发自我的 iPhone

在 2016年11月5日,上午11:29,Jun Han [email protected] 写道:

Closed #19.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

from vscode-code-runner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.