windows 不能在新环境中启动Spyder

lyr7nygr  于 2023-03-09  发布在  Windows
关注(0)|答案(1)|浏览(555)

当我在除“base”之外的另一个env上启动spyder时,我得到这个错误:

fromIccProfile: failed minimal tag size sanity
C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
Traceback (most recent call last):
  File "C:\Users\esto5\anaconda3\envs\PIP\Scripts\spyder-script.py", line 10, in <module>
    sys.exit(main())
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\app\start.py", line 252, in main
    mainwindow.main(options, args)
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\app\mainwindow.py", line 1822, in main
    mainwindow = create_window(MainWindow, app, splash, options, args)
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\app\utils.py", line 289, in create_window
    main.setup()
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\app\mainwindow.py", line 773, in setup
    PLUGIN_REGISTRY.register_plugin(self, PluginClass,
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\api\plugin_registration\registry.py", line 342, in register_plugin
    instance = self._instantiate_spyder5_plugin(
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\api\plugin_registration\registry.py", line 184, in _instantiate_spyder5_plugin
    plugin_instance = PluginClass(main_window, configuration=CONF)
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\api\plugins\new_api.py", line 331, in __init__
    container.setup()
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\plugins\pythonpath\container.py", line 55, in setup
    self._load_pythonpath()
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\plugins\pythonpath\container.py", line 136, in _load_pythonpath
    system_path = get_system_pythonpath()
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\plugins\pythonpath\utils.py", line 31, in get_system_pythonpath
    env = get_user_env()
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\utils\environ.py", line 71, in get_user_env
    env_dict = get_user_environment_variables()
  File "C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\spyder\utils\environ.py", line 60, in get_user_environment_variables
    res = stdout.decode().strip().split(os.linesep)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x90 in position 247: invalid start byte

我在互联网上找不到关于这个特定问题的任何东西。我尝试了太多的更新删除安装
安装与conda创建-n spyder-env -c conda-forge spyder启动它,但不工作更多

zzwlnbp8

zzwlnbp81#

如果有人得到这个问题,在文件:

C:\Users\User_name\anaconda3\envs\PIP\lib\site-packages\spyder\utils\environ.py

我换了一行:

res = stdout.decode().strip().split(os.linesep)

签署人:

res =str(stdout).strip().split(os.linesep)

相关问题