Open abumuttalib opened 2 months ago
Hi @abumuttalib thank you for the report and sorry for the late response! So basically you are trying to install from conda-forge gdal using a Spyder installation from our installers, righ? I'm not totally sure if we support that 🤔 What do you think @ccordoba12 @mrclary ?
In the meantime, I would suggest you to update to the latest Spyder release (6.0.2) and also give a check to the Spyder docs FAQ page: https://docs.spyder-ide.org/current/faq.html#using-spyder
Let us know if the info above helps!
@abumuttalib,
I see that you are trying to install gdal
into Spyder's runtime environment from the IPython Console. I highly recommend not doing this as this could cause issues for Spyder. The recommended practice is to create a separate environment and point Spyder to use that environment.
From an Anaconda prompt or Miniconda prompt, not Spyder's IPython Console:
conda create -n my-env spyder-kernels gdal
Traceback (most recent call last):
Cell In[2], line 1 get_ipython().run_line_magic('conda', 'install gdal')
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\site-packages\IPython\core\interactiveshell.py:2480 in run_line_magic result = fn(*args, **kwargs)
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\site-packages\IPython\core\magics\packaging.py:30 in wrapper return func(*args, **kwargs)
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\site-packages\IPython\core\magics\packaging.py:128 in conda conda = _get_conda_like_executable("conda")
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\site-packages\IPython\core\magics\packaging.py:53 in _get_conda_like_executable match = re.search(
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\re__init__.py:176 in search return _compile(pattern, flags).search(string)
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\re__init__.py:294 in _compile p = _compiler.compile(pattern, flags)
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\re_compiler.py:745 in compile p = _parser.parse(p, flags)
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\re_parser.py:989 in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\re_parser.py:464 in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1,
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\re_parser.py:872 in _parse p = _parse_sub(source, state, sub_verbose, nested + 1)
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\re_parser.py:464 in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1,
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\re_parser.py:548 in _parse code = _escape(source, this, state)
File C:\ProgramData\spyder-6\envs\spyder-runtime\Lib\re_parser.py:447 in _escape raise source.error("bad escape %s" % escape, len(escape))
error: bad escape \P
Versions
Dependencies
## Description ### What steps will reproduce the problem? Start spyder 6 In console type conda install -c conda-forge gdalDoing it all for the first time so not sure if it is really an issue or there is something more needed from my side.