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

Unable to create process using ipython #13190

Open
aviamir opened this issue Oct 16, 2021 · 6 comments
Open

Unable to create process using ipython #13190

aviamir opened this issue Oct 16, 2021 · 6 comments

Comments

@aviamir
Copy link

aviamir commented Oct 16, 2021

Hi. Does anyone here know how to get into the I Python environment despite this bug. I worked as usual for a few weeks and suddenly this line appeared.
Thanks. Avi

(base) C:\Users\AmirA26>conda activate DLC-GPU
(DLC-GPU) C:\Users\AmirA26>ipython
Unable to create process using 'C:\Users\AmirA26\anaconda3\envs\DLC-GPU\python.exe C:\Users\AmirA26\anaconda3\envs\DLC-GPU\Scripts\ipython-script.py ’

(DLC-GPU) C:\Users\AmirA26>

@Carreau
Copy link
Member

Carreau commented Oct 17, 2021

can you create just a python shell, with python, and then do:

>>> import IPython
>>> IPython.start_ipython()

what does it tells you ?

@aviamir
Copy link
Author

aviamir commented Oct 18, 2021

IMG-20211018-WA0025
first of all, thank you.
This is what i get

@Carreau
Copy link
Member

Carreau commented Oct 18, 2021

Can you redo the same after doing a conda activate DLC-GPU?

If you get the same, that means IPython is probably miss-installed. You want to completly remove it and reinstall.

IP would try:

(base) C:\Users\AmirA26> conda activate DLC-GPU
(DLC-GPU) C:\Users\AmirA26> pip uninstall ipython

(once or twice to make really sure it is removed, yes sometime only once don't remove).

then

(DLC-GPU) C:\Users\AmirA26> python -m pip install ipython

You also want to check that

(DLC-GPU) C:\Users\AmirA26> python
... stuff
>>> import sys
>>> sys.executable

says C:\Users\AmirA26\anaconda3\envs\DLC-GPU\python.exe

@aviamir
Copy link
Author

aviamir commented Oct 19, 2021

Hi, I tried and did your suggestions:

  1. pip uninstall ipython - gives me "failed to create process" (image number 1)

  2. -m pip install ipython- installs ipython but issues a warning (image number 2)

" WARNING: The script pygmentize.exe is installed in 'C:\Users\AmirA26\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts iptest.exe, iptest3.exe, ipython.exe and ipython3.exe are installed in 'C:\Users\AmirA26\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location."

  1. sys.executable - gives the following (image 3) "'C:\Users\AmirA26\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe'"

thank you

2
3
1

@Carreau
Copy link
Member

Carreau commented Oct 19, 2021

Ok, those error make more sense. You've also installed Python via the windows store. You need to remove that version of Python, likely using the windows store. You may also have installed Python using the installer from python.org maybe ? in which case you also need to remove this (likely via control panel / uninstall software ? )

Reason are that the install from the windows app store is sandboxed. You may not have installed it explicitly, but just trying to do python at the CLI before installing conda may have installed it.

The second python from Python.org may just confuse your system.

I don't have much experience with windows, so I don't think I will be of much more help to remove those installs.

@aviamir
Copy link
Author

aviamir commented Oct 27, 2021

It worked!!!
I had about 4 different python versions installed in the windows control panel. After I uninstalled all of them and reinstalled Ipython in the specific conda enviroment everything is working fine.

Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants