English 中文(简体)
为该项目挑选的英瓦利德·阿尔法译员
原标题:Invalid Python interpreter selected for the project

我使用Pycharm,每当我把一个项目移至另一倍时,它就说“为该项目挑选的英勇译员”。 我认为,这种情况之所以发生,是因为通风的道路发生了变化。

我尝试了“Existing Environment”和“Existing Environment”的新途径。 我期待这项工作,但在我点击科索沃之后,我说“更新口译道路”是一个时刻,没有任何变化。 我甚至试图检查“所有项目都能得到的面包”。

我也尝试过一些夸大的答复,但无法回答。 我如何确定这一点?

Error:Cannot run program "C:UsersakshaPycharmDigital ClockvenvScriptspython.exe" (in directory "C:UsersakshaPycharm60 Python ProjectsDigital Clock"): CreateProcess error=2, The system cannot find the file specified
最佳回答

虚拟台在<代码>bin/start文档内有硬编码条码,如果你搬走虚拟台,就会失败。

One way is to recreate your virtualenv. Another way is to open the file bin/activate and find this line VIRTUAL_ENV= /private/tmp/test2/.venv and replace it with your new virtualenv path.

My virtualenv is created at /tmp/test2/.venv for reference.

问题回答

@thuyein s answer did work for me. However, you can also find references to VIRTUAL_ENV in: activate.bat, activate.fish, activate.nu. I updated all of those, then updated the path to interpreter in interpreter s settings as well.

In settings/Project:[your_project_name]/Python Interpreter the gear icon next to Python Interpreter s path contains Show all option. These are all interpreters that Pycharm found on your machine. The paths that got messed up are highlighted in red and marked as [Invalid]. Choose the original path of your project s interpreter and just update it (there s an Edit button at the top of the list) - then you ll be able to set it as current interpreter.

对于我来说,PyCharm没有获准读到/usr/ local,因为其分娩。 我停下来,然后安装如下:

sudo snap install pycharm-professional --classic

这使委员会获得了必要的许可,此后口译员的错误不再发生。 之后,

,>这一回答

步骤如下。

  1. Open Pycharm
  2. On extrem right bottom, click on Python version (for example 3.11)
  3. Select Interpreter Settings
  4. A new window will popup where select the project (project:YOUR_PROJECT_NAME)
  5. From right hand side window select python.exe and click on Ok

我在采取这些步骤之后,就应该解决这个问题。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签