python – Spyder在运行任何脚本时报告无效的别名

我不知道为什么会这样,但它似乎已经开始我更新(一切 – 康茄达更新 – 所有).自从我上次更新以来已经有一年了.一定有些变化.

这是脚本:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Mar  3 11:25:22 2019

@author: pitosalas
"""

print("hello")

这是在spyder中按下绿色三角形的输出

Python 3.6.6 |Anaconda,Inc.| (default,Jun 28 2018,11:07:29)
Type "copyright","credits" or "license" for more information.

IPython 7.3.0 -- An enhanced Interactive Python.

runfile('/Users/pitosalas/Box Sync/datawork/2019Resubmit/deleteme.py',wdir='/Users/pitosalas/Box Sync/datawork/2019Resubmit')
ERROR:root:Invalid alias: The name clear can't be aliased because it is another magic command.
ERROR:root:Invalid alias: The name more can't be aliased because it is another magic command.
ERROR:root:Invalid alias: The name less can't be aliased because it is another magic command.
ERROR:root:Invalid alias: The name man can't be aliased because it is another magic command.
hello

解决方法

我今天遇到了同样的情况,我检查了如下.
conda create -n testenv python spyder ipython = 7.3
问题发生了.

conda create -n testenv python spyder ipython = 7.2.0
在这种环境中,它不会发生.

我建议您使用ipython7.2重建您的环境.

相关文章

功能概要:(目前已实现功能)公共展示部分:1.网站首页展示...
大体上把Python中的数据类型分为如下几类: Number(数字) ...
开发之前第一步,就是构造整个的项目结构。这就好比作一幅画...
源码编译方式安装Apache首先下载Apache源码压缩包,地址为ht...
前面说完了此项目的创建及数据模型设计的过程。如果未看过,...
python中常用的写爬虫的库有urllib2、requests,对于大多数比...