我正在尝试设置安装了 python 3.10 的 conda 环境。由于某种原因,其他软件包的安装命令不起作用。例如,如果我运行conda install pandas,我会收到错误:
PackagesNotFoundError: The following packages are not available from current channels:
- python=3.1
Run Code Online (Sandbox Code Playgroud)
conda install -c conda-forge pandas也不行。不确定是什么问题。
当我运行时conda search -c conda-forge nodejs,我得到:
# Name Version Build Channel
...
nodejs 14.2.0 h2c41780_1 conda-forge
nodejs 14.2.0 h38d8c5a_0 conda-forge
nodejs 14.3.0 h2c41780_0 conda-forge
nodejs 14.4.0 h2c41780_0 conda-forge
Run Code Online (Sandbox Code Playgroud)
但是当我尝试使用conda install -c conda-forge nodejs它安装它时,它会尝试安装 6.13.1。做conda install -c conda-forge nodejs==14.4.0也行不通。它一直试图“解决”环境。对于如何解决这个问题,有任何的建议吗?
我正在使用ansible来自动执行某些任务.其中一个要求我ssh到服务器A,然后从A到B再从B到B.然后我似乎无法找到任何方法来获得这样做.有什么建议?
我正在尝试绘制具有离散数值 x 值的散点图。问题在于Plotly将值解释为连续的并且生成的点间隔不均匀。在Seaborn我可以通过将 x 值转换为 来解决这个问题str,但这在 中不起作用Plotly。有什么解决办法吗?MWE如下:
4489058292 0.60
4600724046 0.26
6102975308 0.19
6122589624 0.10
4467367136 1.67
6008680375 2.50
4588967207 0.21
4941295226 0.34
4866979526 0.18
4906915418 0.38
Run Code Online (Sandbox Code Playgroud)
test_df = pd.read_clipboard(sep="\s+", names=["ID", "Value"], index_col=0)
fig = px.scatter(
test_df,
x=test_df.index.astype(str),
y=test_df,
)
fig.update_layout(showlegend=False)
Run Code Online (Sandbox Code Playgroud) 我正在尝试启用HTTP基本身份验证来访问Intranet站点。
这是我正在使用的代码:
from bs4 import BeautifulSoup
import urllib.request, base64, urllib.error
request = urllib.request.Request(url)
string = '%s:%s' % ('username','password')
base64string = base64.standard_b64encode(string.encode('utf-8'))
request.add_header("Authorization", "Basic %s" % base64string)
try:
u = urllib.request.urlopen(request)
except urllib.error.HTTPError as e:
print(e)
print(e.headers)
soup = BeautifulSoup(u.read(), 'html.parser')
print(soup.prettify())
Run Code Online (Sandbox Code Playgroud)
但是它不起作用并且失败了,401 Authorization required.我无法弄清楚为什么它不起作用。
我刚刚安装R在Mojave使用Anaconda 3:
conda install r-base r-essentials r-irkernel
Run Code Online (Sandbox Code Playgroud)
当我输入时r,出现以下错误:
dyld: Library not loaded: @rpath/libreadline.6.2.dylib
Referenced from: /usr/local/anaconda3/lib/R/lib/libR.dylib
Reason: image not found
Abort trap: 6
Run Code Online (Sandbox Code Playgroud)
我按照这个问题中的说明进行操作,但没有帮助。
我一直在疯狂寻找这个问题的答案。如何在 gnuplot 上设置抽动之间的距离?目前,我情节中的抽搐被挤得太紧了。我希望它们更加分散。
下面是一个例子:
我有一个看起来像这样的图表:
100 ——
|
|
50 ——
|
|
0 ——
Run Code Online (Sandbox Code Playgroud)
我希望它看起来像这样:
50 ——
|
|
|
|
|
0 ——
Run Code Online (Sandbox Code Playgroud)
请注意,后样本中实际上少了一个抽动。
conda ×3
anaconda3 ×1
ansible ×1
conda-forge ×1
gnuplot ×1
http-headers ×1
node.js ×1
pandas ×1
python ×1
python-3.6 ×1
r ×1
urllib ×1