Cannot run program (python) No such file or directory(无法运行程序(python)没有这样的文件或目录)
问题描述
我在学校获得了一个代码来调制一个研究项目,但首先我想按原样运行它,未调制.它是用 Python 编写的,我在 Ubuntu 18.04 和 Python 2.7 上使用 Pycharm CE ...我在项目设置中选择了正确的解释器(我认为.路径是/usr/bin/python2.7),我明白了错误信息:
I was given a code at school to modulate for a research project, but first I would like to run it as it is, unmodulated. Its written in Python, and I use Pycharm CE on Ubuntu 18.04 with Python 2.7 ... I've chosen the correct interpreter in the project settings (I think. The path is /usr/bin/python2.7) and I get this Error Message:
运行项目"时出错:无法运行程序C:/WinPython-64bit-2.7.9.1/python-2.7.9.amd64/python.exe"(在目录/home/user/Documents/"中model"): error=2, 没有这样的文件或目录
为什么 Pycharm 仍在寻找我之前的用户曾经放置过的文件夹中的解释器?
Why is Pycharm still looking for the Interpreter in the folder that, I'm assuming, the user before me used to put it?
推荐答案
您可以通过修改 .idea/workspace.xml 文件来修复此错误.搜索并删除所有旧的解释器并放置正确的解释器.
You can fix this error by modifying the .idea/workspace.xml file. Search and remove any old interpreters and put the correct one.
受 Ryan Elfman 帖子启发的答案:https://intellij-support.jetbrains.com/hc/en-us/community/posts/206597295-Why-can-tI-run-a-script-in-PyCharm-when-I-can-debug-it-I-get-CreateProcess-error-123
Answer inspired by Ryan Elfman's post: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206597295-Why-can-t-I-run-a-script-in-PyCharm-when-I-can-debug-it-I-get-CreateProcess-error-123
这篇关于无法运行程序(python)没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:无法运行程序(python)没有这样的文件或目录
基础教程推荐
- Discord.py 缺少必需的参数 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
