我向 Microsoft Azure 请求增加配额,并且可以选择从 A 系列到 NV 系列的 SKU 系列。这是什么意思?
我在TensorFlow 的本指南中安装了 Python、pip3 和 virtualenv :
brew install python
pip3 install -U virtualenv
Run Code Online (Sandbox Code Playgroud)
然后我能够创建一个虚拟环境:
virtualenv --system-site-packages -p python3 ./venv
Run Code Online (Sandbox Code Playgroud)
然后我尝试安装 TensorFlow
pip install --upgrade tensorflow
Run Code Online (Sandbox Code Playgroud)
但它失败了,因为 TensorFlow 尚未与 Python 3.7 兼容。所以我brew remove python从安装程序中删除了 Python 3.7并安装了 3.6.7 。但是virtualenv现在运行相同的命令失败了:
$ virtualenv --system-site-packages -p python3 ./venv
-bash: /usr/local/bin/virtualenv: /usr/local/opt/python/bin/python3.7: bad interpreter: No such file or directory
$ which python3
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
Run Code Online (Sandbox Code Playgroud)
因此virtualenv,即使在删除之后,指向可执行文件的链接也会列出最新的 Python 版本。
此外,virtualenv列出brew作为用户组,其也被迷惑:
$ ls -la …Run Code Online (Sandbox Code Playgroud) 我重新安装了火狐,版本63,现在Ctrl+Tab和Ctrl+ Shift+Tab通过现有的标签不工作周期。如果我打开Firefox和打开第二个选项卡,Ctrl+ Shift+Tab什么也不做,我估计它返回到第一个标签。如果我按住Ctrl+Tab键,我会看到 Firefox 选项卡的缩略图预览,如下图所示:
我怎样才能得到“正常”的行为?
我在 Azure 上有一个虚拟机,在 ssh 之后我可以运行 Conda 和 python:
conda activate py36
python some_script.py
Run Code Online (Sandbox Code Playgroud)
要通过 SSH 从我的计算机运行这些命令,我需要提供 Conda 的完整路径:
ssh ${USER}@${IP} "/data/anaconda/envs/py35/bin/conda activate py36; python some_script.py"
Run Code Online (Sandbox Code Playgroud)
但我收到此错误:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- fish
- tcsh
- xonsh
- zsh
- powershell
See 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart …Run Code Online (Sandbox Code Playgroud) 我想要编辑并再次发送使用 Outlook Online(在 Outlook.office.com,Office 365 的一部分)发送的邮件。此线程解释了如何在 Microsoft Outlook 中执行此操作,但 Outlook Online 中的选项不同,我没有看到“重新发送此邮件”。是否可以?
如果我右键单击已发送的电子邮件,则会打开此上下文菜单:
双击这样一封电子邮件后,我会看到一个新窗口,其中包含电子邮件的内容以及这三个部分,按钮位于顶部、三个点下方和右侧:
我在 Azure 上通过资源组获得了新订阅PB。我可以在 Azure 门户上看到它,但它不会通过命令行显示:
$ az account list --output table
Name CloudName SubscriptionId State IsDefault
------------------------------------ ----------- ------------------------------------ ------- -----------
Run Code Online (Sandbox Code Playgroud)
所以我无法在其上创建虚拟机:
$az_cmd="az vm create
--resource-group PB
--name PBVM
--image microsoft-dsvm:linux-data-science-vm-ubuntu:linuxdsvmubuntu:19.04.00
--size Standard_F4s_v2
--admin-username ${USER}"
$result=$($az_cmd)
error retrieving default location: Resource group 'PB' could not be found.
Run Code Online (Sandbox Code Playgroud)
我尝试强制帐户使用az account set --subscription "<subscription-name>"但az account set --subscription "<subscription-id>"无济于事。
如何强制 CLI 查看这个新订阅?
azure ×3
anaconda ×1
email ×1
firefox ×1
office365 ×1
shell ×1
ssh ×1
virtualenv ×1
youtube-dl ×1