![](https://img-blog.csdnimg.cn/20190918140145169.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
问题记录与解决
bug
周小丫0_0
这个作者很懒,什么都没留下…
展开
-
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version
numpy降版本 目前使用的是1.17.0卸载了重新安装成1.16.4原创 2019-08-26 18:01:19 · 78 阅读 · 0 评论 -
萌新-以ijcai19为模板的latex排版总结
小白什么都不懂鸭。。最近帮老师排版。。截稿前祷告一波 希望老师的论文能中吧~呜呜呜1.必须用pdflatex编译,最好用Adobe PDF查看2.编译报错可以先用\iffalse…\fi 把省略号内容隐藏,然后新建空白文件引用对应宏包后模块化编译试试。以图、表、算法为尤。检查宏包3.字体\textit{}斜体,\textbf{}加粗,.........数学环境斜体英文单词前要有空格...原创 2019-02-24 11:50:48 · 5126 阅读 · 8 评论 -
win10 系统中 Anaconda3 中修改 Jupyter Notebook 默认启动目录
1.anaconda安装完找不到.jupyter目录解决方法:参考这个博客我用的第一种方法 亲测有效找到anaconda安装目录下Script目录,此处我的路径(D:\Anaconda3\Scripts)打开cmd定位到该目录cd /d D:\Anaconda3\Scripts执行命令jupyter notebook --generate-config在用户名目录下即会生成 .ju...原创 2019-07-20 22:02:48 · 239 阅读 · 0 评论 -
tensorboard 在谷歌浏览器打不开的解决 --win10环境
win10环境下命令行要移动进入logs生成的盘内执行tensorboard --logdir=F:\_Python_jupyter\logs执行结果得到TensorBoard 1.13.1 at http://DESKTOP-1VRIPID:6006 (Press CTRL+C to quit)打开http://DESKTOP-1VRIPID:6006的时候显示网页无法打开==》解...原创 2019-07-29 15:44:09 · 710 阅读 · 0 评论 -
TexLive2020+TexStudio下载与安装
鉴于之前安装过出错了这次再安装有所记录,在正式下载安装之前把之前似乎有印象犯过的错先捋一遍;1.之前如果winedt+ctex全套安装不成功的话,要卸载干净;2.miktex+texstudio的组合似乎容易报错;(这个不记得原因是miktex加载宏包要自己一个一个手动添加还是怎么,似乎是操作比较麻烦,对小白不是很友好)3.texlive和texstudio的安装顺序最好先texlive再安...原创 2020-05-02 00:23:45 · 33846 阅读 · 19 评论 -
pytorch1.4.0安装
前几次安装报错后的心情如该博主Could not find a version that satisfies the requirement torch==0.4.1然后,到pytorh官网选择对应版本,反复重复多次可能大概要尝试十几二十次然后才能安装成功pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://downlo...原创 2020-02-01 14:13:16 · 21731 阅读 · 7 评论 -
NameError: name 'raw_input' is not defined
python3.x系列不再有 raw_input 函数。3.x中 input 和从前的 raw_input 等效原创 2019-08-30 10:25:38 · 97 阅读 · 0 评论 -
tensorflow summary总结
tf.scalar_summary(tags, values, collections=None, name=None)tf.image_summary(tag, tensor, max_images=None, collections=None, name=None)tf.histogram_summary(tag, values, collections=None, name=None)...原创 2019-08-02 20:02:34 · 138 阅读 · 0 评论 -
tensorflow2.0安装
anaconda3.7pip install tensorflow==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple测试:import tensorflow as tfversion = tf.__version__gpu_ok = tf.test.is_gpu_available()print("tf version:",vers...原创 2020-02-01 14:02:56 · 85 阅读 · 0 评论 -
ModuleNotFoundError: No module named 'pdfminer.pdfpage'
最开始输入from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreterfrom pdfminer.converter import TextConverterfrom pdfminer.layout import LAParamsfrom pdfminer.pdfpage import PDFPagefrom ...原创 2019-08-09 18:04:25 · 17499 阅读 · 2 评论 -
TypeError: slice indices must be integers or None or have an __index__ method
用int()强制转换类型原创 2019-08-30 17:48:14 · 121 阅读 · 0 评论 -
ValueError: Object arrays cannot be loaded when allow_pickle=False
Use allow_pickle=True as one of the arguments to np.load().原创 2019-08-30 17:44:57 · 154 阅读 · 0 评论 -
TypeError: 'str' object cannot be interpreted as an intege
def application(): testNum = input("input the number of test pictures:") for i in range(testNum): testPic = raw_input("the path of test picture") testPicArr = pre_pic(testPic)...原创 2019-08-30 10:21:20 · 3365 阅读 · 0 评论 -
TypeError: 'function' object is not subscriptable
在tensorflow中定义权重时出现的w1 = tf.Variable(tf.random_normal[2,3], stddev=1, seed=1)w2 = tf.Variable(tf.random_normal[3,1], stddev=1, seed=1)一般是由于没加括号导致的 tf.Variable(tf.random_normal([2,3], stddev=1, se...原创 2019-08-27 10:32:56 · 1968 阅读 · 0 评论 -
ImportError: Something is wrong with the numpy installation. While importing we detected an older ve
反复卸载numpypip uninstall numpy直到出现WARNING: Skipping numpy as it is not installed.然后重新安装numpypip install numpy原创 2019-08-26 17:55:07 · 2850 阅读 · 2 评论 -
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
问题:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2github解释https://stackoverflow.com/questions/47068709/your-cpu-supports-instructions-that-this-tensorflo...原创 2019-08-26 17:53:42 · 250 阅读 · 0 评论 -
ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately d
参考pip install -U --ignore-installed wrapt enum34 simplejson netaddr原创 2019-08-12 09:41:00 · 3548 阅读 · 1 评论 -
numpy warning问题
报错:ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'd:\\anaconda3\\li解决办法:更新numpyp...原创 2019-07-21 13:16:05 · 1103 阅读 · 0 评论 -
按源安装转载
参考原创 2020-02-01 14:22:23 · 85 阅读 · 0 评论 -
Error: iterator should return strings, not bytes (did you open the file in text mode?)
今天写代码,有一句with open('paper.csv','rb') as csvfile:报错Error: iterator should return strings, not bytes (did you open the file in text mode?)然后改成with open('paper_01.csv','r') as csvfile:又报错'gbk' codec...原创 2019-09-17 10:15:56 · 294 阅读 · 0 评论 -
ubuntu打开pycharm
sh /usr/local/pycharm/pycharm-2019.2.1/bin/pycharm.sh原创 2019-09-03 16:12:39 · 369 阅读 · 0 评论 -
pip按源安装
清华镜像pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/原创 2019-09-03 15:13:21 · 80 阅读 · 0 评论 -
Error: iterator should return strings, not bytes (did you open the file in text mode?)
with open('paper.csv','rb') as f: f_csv = csv.reader(f) headers = next(f_csv) print(headers) for row in f_csv: print(row)问题原因: paper.csv只是一个文本文件,并非二进制文件问题解决: 改为如下with open(...原创 2019-09-02 18:44:06 · 1504 阅读 · 0 评论