我在 Ubuntu 中通过 snap 安装了 docker。它工作正常,直到我重新启动。由于重新启动,它不会保持启动状态。
所以我们手动启动守护进程:
$ sudo snap start docker
Started.
Run Code Online (Sandbox Code Playgroud)
凉爽的。看起来开始给我。
$ docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
Run Code Online (Sandbox Code Playgroud)
不。不,它不是。
这是怎么回事,我该如何解决?
我希望能够手动启动它,并在登录时自动启动。
我正在阅读这样的 xlsx 文件
df = pd.read_excel('cleaned_data.xlsx', header=0)
df = df.drop(df.columns[0], axis=1)
df.head()
Run Code Online (Sandbox Code Playgroud)
问题是列名称作为第一行数据。
# reading data from csv file
df = pd.read_excel('cleaned_data.xlsx', header=0)
#df = df.drop(df.columns[0], axis=1)
df = df.drop(0, inplace=True)
df.head()
Run Code Online (Sandbox Code Playgroud)
我尝试了这种方法,但仍然不走运。有什么建议吗?
我一直在尝试PySide2在我的 PC ( Windows 10 64bits) 上Python 3.8安装已安装,但每次都出现错误。
我使用了命令pip install PySide2。它不适合我。
任何帮助将不胜感激。
错误:
ERROR: Could not find a version that satisfies the requirement pyside2 (from versions: none)
ERROR: No matching distribution found for pyside2
Run Code Online (Sandbox Code Playgroud) 我需要获取时间戳记文件夹中的文件路径(以秒为单位)。文件夹名称示例0.000989965428461和1.00189731936e-05
而且我也需要写出时间。
我尝试了一些变体,key=以list.sort(key='')获得从坏到坏的不同结果。我缺乏对潜在问题的list.sort()理解:“理解”我的字符串是数字,但不理解x.xxe-xx也是数字格式。
我必须获取路径文件并将时间写为csv
#### import the simple module from the paraview
from paraview.simple import *
import os
import csv
import re
param='mitteQuer0'
fieldOne= 'U_zCut.vtk'
fieldTwo= 'p_rgh_zCut.vtk'
fieldThree= 'alpha.water_zCut.vtk'
fieldOneVTKs= []
fieldTwoVTKs=[]
fieldThreeVTKs=[]
time=[]
steps=[]
timeNsteps=[]
#Get path of the script
dir_path = os.path.dirname(os.path.realpath(__file__))
#Make folder path
path = dir_path + '/postProcessing/'+param
for path, dirs, files in os.walk(path, topdown=False):
dirs.sort()
for name in dirs:
fieldOneVTKs.append(os.path.join(path, name+'/'+fieldOne))
fieldTwoVTKs.append(os.path.join(path, name+'/'+fieldTwo))
fieldThreeVTKs.append(os.path.join(path, name+'/'+fieldThree))
with …Run Code Online (Sandbox Code Playgroud) python ×3
docker ×1
excel ×1
list ×1
pandas ×1
pip ×1
python-3.x ×1
sorting ×1
ubuntu-19.04 ×1
windows ×1