Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on windows + anaconda #214

Closed
1 task done
carlosjulioph opened this issue Jan 10, 2023 · 4 comments
Closed
1 task done

on windows + anaconda #214

carlosjulioph opened this issue Jan 10, 2023 · 4 comments
Labels
question Further information is requested Stale

Comments

@carlosjulioph
Copy link

Search before asking

Question

i have followed install quick start, but on window i got this error:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] El sistema no puede encontrar el archivo especificado

Additional

No response

@carlosjulioph carlosjulioph added the question Further information is requested label Jan 10, 2023
@JosecarlosRamirezB
Copy link

JosecarlosRamirezB commented Jan 11, 2023

Hi I'm also have the same problem.

I create a new enviroment and run the following comands:
conda install python
conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia
pip install ultralytics

Then when I believe that all is ok I run in a python script:
import ultralytics
and I got the following error:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

@sijie-Xu
Copy link

嘿,兄弟,不需要进行这样操作,

有两种可能一种是环境变量的问题,你可以打开你的subprocess.py文件

位置在你的python环境中,比如 C:\User...\Python\Python39\lib\subprocess.py

找到报错的位置,去打印args变量,查看哪些环境变量出了问题
print(args) hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

另一种方式是,找到subprocess.py中的class Popen
然后将shell=False 改为 shell=True

如图所示:
image

@github-actions
Copy link

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

@github-actions github-actions bot added the Stale label Mar 24, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2023
@pderrenger
Copy link
Member

@sijie-Xu 嘿,感谢你的建议!

我建议你先尝试查看环境变量是否设置正确,然后看看是否有包含问题的地方。将print(args)添加到相应的位置,会有助于找到具体出错的地方。

如果这个方法不起作用,你可以尝试将shell=False改为shell=True,这可能会解决问题。

希望有所帮助!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

4 participants