栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

关于报错vscode

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

关于报错vscode

系列文章目录

提示:分类总结报错提示

所有报错合集
  • 系列文章目录
  • 一、antd类
    • 1、安装问题
  • 二、使用步骤
    • 1.引入库
    • 2.读入数据
  • 总结


一、antd类 1、安装问题
PS C:UsersappleDesktop531ts> npx create-umi myapp  
? Select the boilerplate type ant-design-pro
? 邏 Which language do you want to use? TypeScript
?  Do you need all the blocks or a simple scaffold? simple
Cloning into 'myapp'...
fatal: unable to access 'https://gitee.com/ant-design/ant-design-pro/': Proxy CONNECT aborted
events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: Command failed: git clone https://gitee.com/ant-design/ant-design-pro --depth=1 myapp
null
null
    at makeError (C:UsersappleAppDataLocalnpm-cache_npx1789ec8a15edf54cnode_modulesexecaindex.js:174:9)
    at C:UsersappleAppDataLocalnpm-cache_npx1789ec8a15edf54cnode_modulesexecaindex.js:278:16
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async AntDesignProGenerator.writing (C:UsersappleAppDataLocalnpm-cache_npx1789ec8a15edf54cnode_modulescreate-umilibgeneratorsant-design-proindex.js:107:5)
Emitted 'error' event on AntDesignProGenerator instance at:
    at Immediate. (C:UsersappleAppDataLocalnpm-cache_npx1789ec8a15edf54cnode_modulesyeoman-generatorlibindex.js:1022:20)
    at processImmediate (internal/timers.js:461:21) {
  code: 128,
  stdout: null,
  stderr: null,
  failed: true,
  signal: null,
  cmd: 'git clone https://gitee.com/ant-design/ant-design-pro --depth=1 myapp',
  timedOut: false,
  killed: false
}

这类问题是网络问题,可以用v,也可以换加速,我是用V,解决可以参考这个文章

二、使用步骤 1.引入库

代码如下(示例):

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
import  ssl
ssl._create_default_https_context = ssl._create_unverified_context
2.读入数据

代码如下(示例):

data = pd.read_csv(
    'https://labfile.oss.aliyuncs.com/courses/1283/adult.data.csv')
print(data.head())

该处使用的url网络请求的数据。


总结

提示:这里对文章进行总结:

例如:以上就是今天要讲的内容,本文仅仅简单介绍了pandas的使用,而pandas提供了大量能使我们快速便捷地处理数据的函数和方法。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/935265.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号