小编Ger*_*erg的帖子

如何在窗口ubuntu bash中安装python3.6

我在Window 10 build 15002上使用ubuntu 16.04窗口bash我想在我的窗口10 bash中使用python3.6.然后我安装了python3.6 tar球.

我在安装时按照README文件进行设置,

$ ./configure; make; make test; sudo make install;
Run Code Online (Sandbox Code Playgroud)

但是,安装时出现错误.以下是"./confiugure"

?  Python-3.6.0 ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for python3.6... python3.6
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... linux
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/local/develop/language/Python-3.6.0':
configure: error: C compiler cannot create executables
See `config.log' for more details …
Run Code Online (Sandbox Code Playgroud)

python linux gcc python-3.6 windows-subsystem-for-linux

14
推荐指数
2
解决办法
1万
查看次数

Docker登录:手动登录专用注册表时出错

我无法从CLI手动登录我的私有GitLab Docker注册表:

# docker login -u "${DOCKER_USER}" -p "${DOCKER_PASS}" "${DOCKER_URL}"
error getting credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`
Run Code Online (Sandbox Code Playgroud)

系统信息:

  • Ubuntu 18.04
  • docker-ce 18.03.1〜ce〜3-0〜ubuntu(来自官方仓库,没有安装脚本)

没有~/.docker/config.json任何用户,我docker login以root 用户身份执行。在Google上,我只是找到以下建议export DISPLAY:码头工人只能在GUI环境中登录到远程注册表吗?导出DISPLAY = 0:0会产生:

error getting credentials - err: exit status 1, out: `Failed to execute child process “dbus-launch” (No such file or directory)`
Run Code Online (Sandbox Code Playgroud)

我缺少一些依赖吗?否则,Docker可以正常运行,但是登录不起作用。我知道有用于存储凭据的后端,但是我不想存储凭据。我只是想对我的注册表进行身份验证以提取图像,这在Docker ootb中不起作用吗?

debian docker docker-registry docker-compose ubuntu-18.04

6
推荐指数
1
解决办法
1543
查看次数

在Excel中将字符串转换为纪元时间

我正在尝试将以下格式的字符串转换为:20130817T140000Z(2013年8月17日14:00)到MS Excel 2013中的纪元时间(自1970年以来的秒数).

尝试过单元格格式,但它一般不适用于T和/ Z或格式.

excel datetime epoch

4
推荐指数
1
解决办法
1万
查看次数

VirtualBox + Powershell?

我创建了一个虚拟机.现在我尝试使用Powershell启动它.我已经在互联网上搜索了有关如何做到这一点的任何细节.这是我发现的唯一代码......

#----------------------
$vBox = New-Object -ComObject VirtualBox.VirtualBox
$vBox | Get-Member *

$vBox.Machines

$vBox.CreateMachine()
#----------------------
Run Code Online (Sandbox Code Playgroud)

(来源:http://www.ravichaganti.com/blog/? p = 1275)

实际上,我无法在virtualbox.org上找到有关com对象的任何文档.我对powershell非常擅长,我花了一些时间来探索com对象...

$vBox | gm
Run Code Online (Sandbox Code Playgroud)

我尝试了所有我能想到但却只收到错误的东西.我的问题是如何使用Powershell启动我的VM

谢谢

powershell virtualbox comobject

3
推荐指数
1
解决办法
7366
查看次数