![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
11格格BLUE
一名兴趣使然的小白
展开
-
Ubuntu18.04 pip3 出现bash: /usr/local/bin/pip3:/usr/bin/python3:解释器错误: 权限不够问题
Ubuntu18.04 pip3 出现bash: /usr/local/bin/pip3:/usr/bin/python3:解释器错误: 权限不够问题原创 2022-10-09 16:33:20 · 2443 阅读 · 0 评论 -
TypeError: new() received an invalid combination of arguments - got (float, int, int, int), but expe
TypeError: new() received an invalid combination of arguments - got (float, int, int, int), but expected one of: * (*, torch.device device) * (torch.Storage storage) * (Tensor other) * (tuple of ints size, *, torch.device device) * (object data, *, t.原创 2021-03-12 17:59:43 · 8551 阅读 · 0 评论 -
RuntimeError: An attempt has been made to start a new process before the current pr
报错:RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you hav原创 2020-07-23 14:34:50 · 197 阅读 · 0 评论 -
SyntaxError: Generator expression must be parenthesized
Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "F:\Python_Carsh_Course\learningLog\ll_env\lib\site-packages\django\core\management\__init__.py", line 363, in execute_from_co.原创 2020-07-16 15:06:17 · 389 阅读 · 0 评论 -
Python编程从入门到实践 18.1.6 在Django中创建项目 创建失败问题
原文为这个 ,可是运行后没有新建django-admin.py startproject learning_log .改为下面的即可django-admin startproject learning_log .原创 2020-07-16 14:54:26 · 250 阅读 · 0 评论 -
pytorch中 tensor.dot()方法报错1D tensors expected, got 2D, 2D tensors
RuntimeError: 1D tensors expected, got 2D, 2D tensors at C:\w\1\s\windows\pytorch\aten\src\TH/generic/THTensorEvenMoreMath.cpp:774这是由于在pytorch0.3之后,tensor.dot()方法进行了更新,只能对1维的tensor进行点成运算。所以只要检查一下自己输...原创 2020-03-31 16:00:11 · 8780 阅读 · 0 评论 -
Python学习路线
在网上看到黑马的Python学习路线,分享给大家,大家可以学一下1,2两个部分后然后根据自己的方向来进行学习。原创 2020-03-21 14:13:37 · 121 阅读 · 0 评论 -
No default session is registered. Use `with sess.as_default()` 报错的解决
今天出现了这个报错,具体的解决方法,将sess = tf.Session()改为sess = tf.InteractiveSession(),程序可正常运行了。(我看有的博主说改为with tf.Session() as sess:也可以)出现这种情况好像是因为Session.run()和Tensor.eval()两者之间有一定的区别,sess.run()在同一步获取多个tensor...原创 2020-02-12 19:51:12 · 1147 阅读 · 0 评论 -
关于在ubuntu上安装NVIDIA驱动时出现的一个问题
前段时间在ubuntu16.04系统中安装NVIDIA驱动时候,进入命令行模式后,输入关闭图形化界面的命令后,会出现用户名和四个◆的一行,一开始我也不知道这是我操作正确还是错误,然后就一直等,以为等一会就好了,后来等了半天也不行,就重新退出命令行界面重新开始,可还是会出现这样的情况。后来通过问了一下其他同学,发现要在这个时候输入密码,在输入密码后就可以进行剩下的其他操作了。...原创 2020-01-10 10:12:18 · 221 阅读 · 0 评论 -
windows中pycharm中plt画图中文乱码解决
import matplotlib.pyplot as pltimport matplotlib出现中文乱码原因: matplotlib中找不到中文字体解决方法:1.找到中文字体文件的地址和字体文件名 通常:C:\Windows\Fonts\字体文件名2.加载字体 zh_font = matplotlib.font_manager.FontPrope...转载 2019-09-28 21:25:57 · 1285 阅读 · 0 评论