logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

[使用教程]使用pycharm自动将代码同步至服务器,并使用服务器的虚拟环境进行调试

点击 tool-deployment-config…在connecting中填写相应的信息在mapping中填写相应的文件夹

#pycharm#服务器
python中使用clr报错: AttributeError: module ‘clr‘ has no attribute ‘AddReference‘

本来想用pythonnet来使python调用C#的dll文件,网上查了一下,可以使用import clr和clr.AddReference()来调用dll文件。但是在使用clr时,产生了报错。AttributeError: module 'clr' has no attribute 'AddReference'报错的原因是pip安装pythonnet时,使用了pip install clr...

#python#c#
python将gym环境的运行过程保存为gif

from matplotlib import animationdef display_frames_as_gif(frames):patch = plt.imshow(frames[0])plt.axis('off')def animate(i):patch.set_data(frames[i])anim = ani...

OSError: [E050] Can‘t find model ‘en_core_web_sm‘. It doesn‘t seem to be a shortcut link, a Python p

问题:python虚拟环境中安装了spacy,但是在调用nlp = spacy.load("en_core_web_sm")时,报错。解决方案:在虚拟环境中执行python -m spacy download en参考链接

#前端#python#开发语言
Chrome在新标签页打开书签和搜索结果

chrome虽然很好用,但是打开网页时总是在当前标签页显示,不符合我的使用习惯。下面两个方法分别对应在新标签页打开书签和搜索结果。新标签页打开书签:将书签拖至标签栏空白处或鼠标中键点击。新标签页打开搜索结果:谷歌搜索首页右下角,设置->搜索设置->在新的浏览器窗口中打开所选的每条搜索结果...

#chrome
git 报错:remote: Invalid username or password. fatal: Authentication failed for ‘https://github.com...

在执行push操作时,一直报错说密码错误,但我确定用户名和密码都是正确的。找了好多方案,发现都不能解决问题。最后发现,并不是要输入密码,而是token。所以解决方法是:- 去github -> setting -> developer settings -> personal access token- 生成一个新的token 生成新的token- 复制token,在需要输入密码

#git
tensorflow训练过程控制callback

best_mean_reward, n_steps = -np.inf, 0def callback(_locals, _globals):"""Callback called at each step (for DQN an others) or after n steps (see ACER or PPO2):param _locals: (dict):param _gl...

【解决方案】安装mpi4py时报错:error: Cannot compile MPI programs. Check your configuration!!

错误如题报错如下:removing: _configtest.c _configtest.oerror: Cannot compile MPI programs. Check your configuration!!!解决方法:sudo apt install libopenmpi-devpip install mpi4pyref...

python时间对比错误:TypeError: can't compare offset-naive and offset-aware datetimes

原因:时区不匹配解决方法:import datetimeimport pytzutc=pytz.UTC# 方法1:统一转为当地时间time_start = utc.localize(time_start)time_end = utc.localize(time_end)# 方法2:统一转为utcstart_time = time_start.replace(tzinfo...

    共 47 条
  • 1
  • 2
  • 3
  • 4
  • 5
  • 请选择