whoa there, pardner!
Your request has been blocked due to a network policy.
Try logging in or creating an account here to get back to browsing.
If you’re running a script or application, please register or sign in with your developer credentials here. Additionally make sure your User-Agent is not empty and is something unique and descriptive and try again. if you’re supplying an alternate User-Agent string, try changing back to default as that can sometimes result in a block.
You can read Reddit’s Terms of Service here.
if you think that we’ve incorrectly blocked you or you would like to discuss easier ways to get the data you want, please file a ticket here.
when contacting us, please include your ip address which is: 178.175.141.248 and reddit account
Python-сообщество
- Начало
- » Центр помощи
- » Прошу помочь c PyCharm
#1 Апрель 16, 2019 12:16:10
zantal Зарегистрирован: 2019-04-16 Сообщения: 22 Репутация: 0 Профиль Отправить e-mail
Прошу помочь c PyCharm
Уважаемые коллеги! Прошу Вас помочь со следующим:
В PyCharm написал простейшую программу (переписал из учебника), но она не запускается. Выдаётся вот такая ошибка:
No pyvenv.cfg file
Process finished with exit code 106
Что может быть? Если не сложно — опишите, пожалуйста, поподробнее.
Заранее большое спасибо!
Прикреплённый файлы:
Без имени.png (48,0 KБ)
#2 Апрель 16, 2019 12:49:07
Rodegast От: Пятигорск Зарегистрирован: 2007-12-28 Сообщения: 2665 Репутация: 181 Профиль Отправить e-mail
Прошу помочь c PyCharm
А зачем тебе PyCharm? Используй что-то более адекватное.
С дураками и сектантами не спорю, истину не ищу.
Ели кому-то правда не нравится, то заранее извиняюсь.
No pyvenv cfg file pycharm как исправить
➜
This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python’s Developer Guide.
Created on 2020-07-22 03:28 by Packhash, last changed 2022-04-11 14:59 by admin.
Файлы | ||||
---|---|---|---|---|
Имя файла | Загружен | Description | Редактировать | |
screenshot.png | Packhash , 2020-07-22 17:02 |
on Windows 10 64 after install of Python 3.8.5 and after install of decrypt_bitcoinj_seed.pyw python -m venv myenv c:\path\to\myenv does not create the pyvenv.cfg file. The Python Script requires PIP (Google Protobuf and pylibscrypt) and I understand it's included in 3.8.5. Please provide step by step instructions for how to either create or download the pyvenv.cfg file and the exact Python path to folder name it needs to go so I can overcome this error. Or if someone has a different solution, that's fine too. I just need the decrypt_bitcoinj_seed.pyw to work.
It seems like you're trying to launch the python.exe that is created for a virtual environment rather than the actual one. This probably means that at some point you created a virtual environment and updated your file association to launch it. The best thing to do is to right-click your .pyw file, choose "Open With", "Choose another app", enable "Always open . " and choose "Python" from its list (the icon should have a space shuttle being launched). That will switch you back to the original file association.
Mr. Dower, I apologize for not being more specific. since this is Windows based and not console driven, the file used for execution should be pythonw.exe according to the instructions at https://github.com/gurnec/decrypt_bitcoinj_seed so I right clicked on decrypt_bitcoinj_seed.pyw and went to properties and changed it's association to pythonw.exe so it would run in a non-console manner. After doing this however, it still didn't work with the error "No pyvenv.cfg file". Would I still follow your instructions, choosing Python instead of pythonw.exe? Do you happen to know why the pyvenv.cfg never got created in the first place? After all, when I do a search it's no where to be found on my C: drive.
Does anyone know why when Python Launcher is executed by double clicking on the Python script called ecrypt_bitcoinj_seed.pyw a small window pops of stating. "Python Launcher is sorry to say. No pyvenv.cfg file" as in the image? Why wouldn't the pyvenv.cfg file NOT get created like it's supposed to. After doing a search for it on C: drive it is not found. If anyone has a copy of the file, would you please provide it and also tell me the folder to place it in? Thank you
> "Python Launcher is sorry to say. No pyvenv.cfg file" As already mentioned, that it fails with this error means you're running a virtual-environment launcher instead of a base Python executable. That it displays a message box means you ran a GUI pythonw.exe virtual-environment launcher. pyvenv.cfg is a configuration file that the virtual-environment launcher looks for beside the executable, or one directory up. It tells the launcher where to find the base python[w].exe executable. As already suggested, you should associate .py[w] scripts with the "Python" app that depicts a rocket/shuttle being launched on its icon. This will associate .py[w] scripts with the py[w].exe launcher, and it also associates them with a shell drop handler that allows files to be dragged and dropped on a script icon in Explorer.
> it fails with this error means you're running a virtual-environment launcher instead of a base Python executable. Exactly. It sounds like you probably searched for pythonw.exe and found the one in Lib/venv/scripts/nt instead of the actual one. The default association should go to pyw.exe, which is likely in your C:\Windows directory.
> The default association should go to pyw.exe, which is likely in > your C:\Windows directory. However, don't browse for pyw.exe. That will create a new progid that doesn't support command-line arguments or a shell drop handler. You should select the Python app from the list that shows a rocket/shuttle being launched on its icon. If it isn't shown or doesn't work properly, try repairing your installation of Python.
История | |||
---|---|---|---|
Дата | Пользователь | Действие | Параметры |
2022-04-11 14:59:33 | admin | установка | github: 85537 |
2020-07-23 13:09:20 | eryksun | установка | сообщения: + msg374135 |
2020-07-23 08:28:12 | steve.dower | установка | сообщения: + msg374129 |
2020-07-22 18:06:10 | eryksun | установка | извещения: + eryksun сообщения: + msg374098 |
2020-07-22 17:02:04 | Packhash | установка | файлы: + screenshot.png |
Supported by The Python Software Foundation,
Powered by Roundup
Copyright © 1990-2022, Python Software Foundation
Legal Statements
Package installation issues
You might encounter a problem when installing a Python package in the project settings or in the Python Package tool window. Eventually, most of the issues are out of IDE control as PyCharm uses the pip package manager to perform the actual installation.
This article provides troubleshooting tips and covers some typical cases.
Install a package using the Terminal
The most viable troubleshooting action is to try installing the problematic package on the selected Python interpreter using the terminal. If you get an identical error message, then the problem is not in the IDE and you should review the rationales and typical cases, or search for a solution on the Internet.
Install a package on a virtual environment
- Press Ctrl+Alt+S to open the IDE settings and then select Project | Python Interpreter .
- Expand the list of the available interpreters and click Show All .
- Locate the target interpreter and copy the path to the virtual environment.
- Open the system terminal (not the PyCharm’s built-in one) and run the following commands:
source /Scripts/activate pip install
source /bin/activate pip install
Install a package on a conda environment
- If you didn’t change the default conda environment name when configuring the interpreter, you can use the project name. Otherwise, do the following:
- Press Ctrl+Alt+S and go to Project: | Python Interpreter .
- Expand the list of the project interpreters and scroll it down, then select Show All .
- Locate the interpreter, press Rename , and copy the environment name.
- Open the system terminal (not the PyCharm’s built-in one) and run the following commands:
activate conda install
conda activate conda install
source activate conda install
conda activate conda install
For more information about activating an environment, refer to conda documentation. One of the possible failure cases occurs when the target package is not available in the repositories supported by the conda package manager.
Install a package on a system interpreter
- To check the path of the currently selected system interpreter that you were trying to install a package on, press Ctrl+Alt+S and go to Project: | Python Interpreter .
- Expand the list of the available interpreters and click Show All .
- Locate the interpreter and copy the path.
- Open the system terminal (not the PyCharm’s built-in one) and run the following commands:
-m pip install
You might need the admin privileges to install packages on a system interpreter.
Parse the results
The package cannot be installed because the Python version doesn’t satisfy the package requirement.
Try to create another Python interpreter that is based on the Python version that meets the requirement.
The package cannot be installed because you don’t have permissions to install it.
Try to install the package using super-user privileges, for example, sudo pip install .
The package cannot be installed because the package is not available in the repository that is supported by the selected package manager. Example: you’re trying to install a package that is not available in the conda package manager repositories.
Try to configure another type of Python interpreter for your project and install the package on it. See how to add and modify a Python interpreter in Configure a Python interpreter.
The package cannot be installed and it matches one of the typical package installation failure cases.
Check the cases and apply related workarounds.
The package is successfully installed.
File an issue in the PyCharm issue tracker and provide explicit details about the case including all console output, error messages, and screenshots indicating that you tried to install the package on the same interpreter in the terminal and in the project settings or in the Python Packages tool window.
Review typical cases
fatal error: ‘SDL.h’ file not found
Installation fails because the package requires SDL, and pip cannot detect it. Try the following commands:
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi; pip3 install pygame; pip install pygame
Cannot open include file: ‘portaudio.h’
Try to run the following commands using the admin privileges:
pip install pipwin pipwin install pyaudio
SSL module in Python is not available
Install an openssl library by the way specific to your operating system. See the detailed solutions.