YIRANNA 发表于 2020-11-14 00:38:01

如何安装spyder

已经安装了Anconda 但是在cmd 里安装spyder 的时候弹出很长一串错误 请问有什么方法可以解决   代码如下:
ERROR: Exception:
Traceback (most recent call last):
File "d:\python\lib\site-packages\pip\_vendor\urllib3\response.py", line 437, in _error_catcher
    yield
File "d:\python\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in read
    data = self._fp.read(amt) if not fp_closed else b""
File "d:\python\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
    data = self.__fp.read(amt)
File "d:\python\lib\http\client.py", line 458, in read
    n = self.readinto(b)
File "d:\python\lib\http\client.py", line 502, in readinto
    n = self.fp.readinto(b)
File "d:\python\lib\socket.py", line 704, in readinto
    return self._sock.recv_into(b)
File "d:\python\lib\ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
File "d:\python\lib\ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:\python\lib\site-packages\pip\_internal\cli\base_command.py", line 228, in _main
    status = self.run(options, args)
File "d:\python\lib\site-packages\pip\_internal\cli\req_command.py", line 182, in wrapper
    return func(self, options, args)
File "d:\python\lib\site-packages\pip\_internal\commands\install.py", line 323, in run
    requirement_set = resolver.resolve(
File "d:\python\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 183, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "d:\python\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 388, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
File "d:\python\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 340, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
File "d:\python\lib\site-packages\pip\_internal\operations\prepare.py", line 467, in prepare_linked_requirement
    local_file = unpack_url(
File "d:\python\lib\site-packages\pip\_internal\operations\prepare.py", line 255, in unpack_url
    file = get_http_url(
File "d:\python\lib\site-packages\pip\_internal\operations\prepare.py", line 129, in get_http_url
    from_path, content_type = _download_http_url(
File "d:\python\lib\site-packages\pip\_internal\operations\prepare.py", line 282, in _download_http_url
    for chunk in download.chunks:
File "d:\python\lib\site-packages\pip\_internal\cli\progress_bars.py", line 168, in iter
    for x in it:
File "d:\python\lib\site-packages\pip\_internal\network\utils.py", line 64, in response_chunks
    for chunk in response.raw.stream(
File "d:\python\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream
    data = self.read(amt=amt, decode_content=decode_content)
File "d:\python\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "d:\python\lib\contextlib.py", line 135, in __exit__
    self.gen.throw(type, value, traceback)
File "d:\python\lib\site-packages\pip\_vendor\urllib3\response.py", line 442, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

Twilight6 发表于 2020-11-14 01:00:33



安装 Anaconda3 自带有 spyder 的吧?

你看下你开始菜单的 Anaconda3 文件夹里:



YIRANNA 发表于 2020-11-14 01:06:04

Twilight6 发表于 2020-11-14 01:00
安装 Anaconda3 自带有 spyder 的吧?

你看下你开始菜单的 Anaconda3 文件夹里:

但是这个是puthon3.7 而我python版本是3.9,这个会有影响吗

Twilight6 发表于 2020-11-14 01:09:29

YIRANNA 发表于 2020-11-14 01:06
但是这个是puthon3.7 而我python版本是3.9,这个会有影响吗



在 Spyder 里面改对应版本解释器就行,默认即是 Anaconda3 自带的 Python 3.7解释器:



YIRANNA 发表于 2020-11-14 01:10:06

Twilight6 发表于 2020-11-14 01:09
在 Spyder 里面改对应版本解释器就行了:

那如果我想要更新到4.2或者4.15版本呢

Twilight6 发表于 2020-11-14 01:11:30

YIRANNA 发表于 2020-11-14 01:10
那如果我想要更新到4.2或者4.15版本呢



检查看看呗?




YIRANNA 发表于 2020-11-14 01:15:51

Twilight6 发表于 2020-11-14 01:11
检查看看呗?

ok,感谢,那么cdsn上那些直接在cmd里更新的操作是为什么

Twilight6 发表于 2020-11-14 09:35:37

YIRANNA 发表于 2020-11-14 01:15
ok,感谢,那么cdsn上那些直接在cmd里更新的操作是为什么

一样的,都是更新

YIRANNA 发表于 2020-11-14 14:24:50

Twilight6 发表于 2020-11-14 01:09
在 Spyder 里面改对应版本解释器就行,默认即是 Anaconda3 自带的 Python 3.7解释器:

改了之后重新启动它还是3.7啊。。
而且旁边的console栏里还出现了错误
Your Python environment or installation doesn't have the spyder‑kernels module or the right version of it installed. Without this module is not possible for Spyder to create a console for you.

You can install it by running in a system terminal:

conda install spyder‑kernels=0.*

or

pip install spyder‑kernels==0.*

Twilight6 发表于 2020-11-14 14:29:46

YIRANNA 发表于 2020-11-14 14:24
改了之后重新启动它还是3.7啊。。
而且旁边的console栏里还出现了错误
Your Python environment or ins ...


你还要把你那个解释器安装下 spyder‑kernels 模块

你给你的 Python 接收器 安装下这个模块:pip install spyder‑kernels

YIRANNA 发表于 2020-11-14 16:35:40

Twilight6 发表于 2020-11-14 14:29
你还要把你那个解释器安装下 spyder‑kernels 模块

你给你的 Python 接收器 安装下这个模块:

然后就出错了

Twilight6 发表于 2020-11-14 17:01:49

YIRANNA 发表于 2020-11-14 16:35
然后就出错了



怎么乱码了... 是这个才对

pip install spyder-kernels


青松100 发表于 2020-11-14 17:09:33

本帖最后由 青松100 于 2020-11-14 17:18 编辑

Twilight6 发表于 2020-11-14 17:01
怎么乱码了... 是这个才对

实在不好意思,楼主。 我能借楼一下吗?

版主大大,今天下午我有一个主帖被吊起来审核了,能麻烦你审核一下吗?



@不二如是  版主大大,是这个帖子
---        爬取BOSS的岗位名称和详情页的岗位描述



Twilight6 发表于 2020-11-14 17:13:52

青松100 发表于 2020-11-14 17:09
实在不好意思,楼主。 我能借楼一下吗?

版主大大,今天下午我有一个主帖被吊起来审核了,能麻烦你审 ...



抱歉 正式版主才行审核~ 我帮你扣下

@不二如是看楼上~

YIRANNA 发表于 2020-11-14 20:15:15

Twilight6 发表于 2020-11-14 17:01
怎么乱码了... 是这个才对

还是出错啊,只要是cmd运行代码就会出现我说的那一长串代码

Twilight6 发表于 2020-11-14 20:19:24

YIRANNA 发表于 2020-11-14 20:15
还是出错啊,只要是cmd运行代码就会出现我说的那一长串代码



....发截图吧,你一直只说出现错误,不给我看错误内容怎么能解决的了呢?

YIRANNA 发表于 2020-11-14 23:18:32

Twilight6 发表于 2020-11-14 20:19
....发截图吧,你一直只说出现错误,不给我看错误内容怎么能解决的了呢?

错误的内容就在一楼啊。。。。

Twilight6 发表于 2020-11-14 23:20:46

YIRANNA 发表于 2020-11-14 23:18
错误的内容就在一楼啊。。。。



错误应该是因为超时了,用清华镜像就行:

python -m pip install spyder-kernels -i https://pypi.tuna.tsinghua.edu.cn/simple

页: [1]
查看完整版本: 如何安装spyder