小编esh*_*ana的帖子

在 PgAdmin 4 实用程序中找不到

请帮我解决这个错误

找不到“C:\Program Files\PostgreSQL\13\pgAdmin 4\runtime\pg_restore.exe”文件。请更正首选项对话框中的二进制路径

1

sql pgadmin pgadmin-4

30
推荐指数
2
解决办法
5万
查看次数

Google Colab 错误:无法解析导入“tensorflow.keras.models”(reportMissingImports)

import tensorflow as tf
tf.__version__

!sudo pip3 install keras

from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv2D, Flatten, Dropout, MaxPooling2D
from tensorflow.keras.preprocessing.image import ImageDataGenerator
Run Code Online (Sandbox Code Playgroud)

错误信息:

Import "tensorflow.keras.models" could not be resolved(reportMissingImports)
>Import "tensorflow.keras.layers" could not be resolved(reportMissingImports)
>>Import "tensorflow.keras.preprocessing.image" could not be resolved(reportMissingImports)
Run Code Online (Sandbox Code Playgroud)

python keras tensorflow

23
推荐指数
3
解决办法
6万
查看次数

Postgresql 错误:无法从视图中删除列

我是 postgresql 新手。谁能建议这个错误的原因和解决方案?但是,如果我选择额外的总和(s.length),它会起作用,但我不会在结果中这样做。

代码:

create or replace view q1("group",album,year)
as
select g.name, a.title, a.year
from Groups g, Albums a, Songs s
where a.made_by = g.id and s.on_album = a.id
group by a.title, g.name, a.year
order by sum(s.length) desc 
limit 1
;
Run Code Online (Sandbox Code Playgroud)

错误信息:

错误:无法从视图中删除列

sql postgresql

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

模块“numpy.distutils.__config__”没有属性“blas_opt_info”

我正在尝试研究神经网络和深度学习(http://neuralnetworksanddeeplearning.com/chap1.html)。使用 MichalDanielDobrzanski 的 Python 3 更新版本 ( https://github.com/MichalDanielDobrzanski/DeepLearningPython )。尝试在我的命令控制台中运行它,但出现以下错误。我尝试卸载并重新安装 setuptools、theano 和 numpy,但到目前为止都没有成功。非常感谢任何帮助!

这是完整的错误日志:

WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`
C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configdefaults.py:560: UserWarning: DeprecationWarning: there is no c++ compiler.This is deprecated and with Theano 0.11 a c++ compiler will be mandatory
  warnings.warn("DeprecationWarning: there is no c++ compiler."
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be …
Run Code Online (Sandbox Code Playgroud)

python numpy theano deep-learning tensorflow

13
推荐指数
3
解决办法
2万
查看次数

使用 docker 意外字符启动 Django

我正在尝试在我的 Mac 上启动此项目https://github.com/realsuayip/django-sozluk 它可以在我的 Windows 计算机上运行,​​但我在 Mac 上遇到此错误:

意想不到的字符“。” 在“127.0.0.1 192.168.2.253\nDJANGO_SETTINGS_MODULE=djdict.settings_prod\n\n\nSQL_ENGINE=django.db.backends.postgresql\nSQL_PORT=5432\nDATABASE=postgres\nSQL_HOST=db\n\nSQL_DATABASE=db_dictionary\”附近的变量名称中nSQL_USER=db_dictionary_user\nSQL_PASSWORD=db_dictionary_password\n\n\nEMAIL_HOST=eh\nEMAIL_PORT=587\nEMAIL_HOST_USER=eh_usr\nEMAIL_HOST_PASSWORD=pw"furkan@MacBook-Air-von-Furkan gs %

任何帮助将非常感激!

python sql linux django macos

11
推荐指数
3
解决办法
6976
查看次数

Pandas DataFrame itertuples() 返回的 NamedTuple 的类型提示

ITERTUPLES是迭代 pandas DF 的好方法,它返回一个命名元组。

import pandas as pd
import numpy as np

df = pd.DataFrame({'num_legs': [4, 2], 'num_wings': [0, 2]},index=['dog', 'hawk'])
for row in df.itertuples():
    print(type(row))
    print(row)
Run Code Online (Sandbox Code Playgroud)
<class 'pandas.core.frame.Pandas'>
Pandas(Index='dog', num_legs=4, num_wings=0)
<class 'pandas.core.frame.Pandas'>
Pandas(Index='hawk', num_legs=2, num_wings=2)
Run Code Online (Sandbox Code Playgroud)

如果有的话,向返回的命名元组添加类型提示的正确方法是什么?

python typing type-hinting

10
推荐指数
1
解决办法
1260
查看次数

从 Google Data Studio 调用 Bigquery 存储过程

知道如何从 Google 数据工作室调用 bigquery 存储过程吗?我有一个使用 Bigquery 过程完成的递归查询要求。但是需要将参数从 datastudio 报告传递给这个过程,并获得相同的结果并显示在 Data studio 报告中。我曾尝试从 Data Studio 中的自定义查询调用该过程,但没有成功。Datastudio 抛出错误。我尝试从函数调用过程,但它不起作用。任何的想法?如何从 Google Data Studio 调用程序?

编写的程序

DECLARE stop INT64 DEFAULT 30;
    DECLARE v_target string;
    DECLARE v_target_column_name string;
    DECLARE max_counter INT64;
    DECLARE min_counter INT64;
    DECLARE v_exists bool;
    SET v_target = 'v_target';
    SET v_target_column_name = 'v_target_col';
    create or replace table test.poc_sttm_resp as
    select ROW_NUMBER() OVER() as counter,'N' as flag,source,source_column_name,target,target_column_name from test.test_sttm where target = v_target and target_column_name = v_target_column_name;
    LOOP
    SET max_counter = (select max(counter) from test.poc_sttm_resp); …
Run Code Online (Sandbox Code Playgroud)

google-bigquery google-data-studio

7
推荐指数
1
解决办法
271
查看次数

pgAdmin 和终端:致命:用户密码验证失败

伙计们!我正在尝试在 pdAdmin 4 中创建本地服务器,但每次尝试创建时都会收到此错误:

[pgAdmin 错误]

1

如果“veterano”是我的用户名......

我尝试运行此操作(但不起作用)

检查 Postgres 服务是否安装正确:

$ sudo systemctl is-active postgresql 终端背面: active

$ sudo systemctl is-enabled postgresql 终端背面: enabled

$ sudo systemctl status postgresql 终端背面: active (exited)

$ sudo pg_isready 终端背面: /var/run/postgresql:5433 - accepting connections

我对 pg_hba.conf 的配置:

local   all             postgres                                peer

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     peer
# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
# IPv6 local connections: …
Run Code Online (Sandbox Code Playgroud)

postgresql ubuntu pgadmin-4

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

SSIS执行SQL任务错误“ORA-03291:无效的截断选项-缺少STORAGE关键字”

我正在我的 SSIS 中通过 Visual Studio 运行执行任务,并收到错误“ORA-03291:无效的截断选项 - 缺少 STORAGE 关键字”。我正在与“OLE DB 的 Oracle 提供程序”连接,我使用的代码是:

truncate table myTable DROP STORAGE; 
Run Code Online (Sandbox Code Playgroud)

这在 oracle SQL 开发人员中工作正常,但在 SSIS 中不行 我尝试过使用我的表空间名称和延迟验证

sql oracle ssis

5
推荐指数
1
解决办法
8090
查看次数

Anaconda Navigator (2.0.4 --&gt; 2.1.1) 不会在 Windows 10 上更新

我只是想知道是否有人遇到过标题中提到的问题。

语境

我目前使用的是 anaconda navigator 版本 2.0.4(如果我没记错的话,这是 2021 年 7 月的版本),我希望将 navigator 升级到版本 2.1.1(截至本文发布时的最新版本)。我的操作系统是 Windows 10。

问题

当我从导航器本身更新(在“立即升级”按钮上)时,更新说它正在运行但从未完成(我坐了大约一个小时才关闭它)。

我尝试手动安装更新,但它只是告诉我“所有请求的软件包已安装”(见下文)

在此输入图像描述

我什至尝试进入 anaconda powershell 提示符,停用 conda 并更新它,但仍然存在相同的问题(“所有请求的软件包已安装”),请参见下文:

在此输入图像描述

我想知道是否有人和我有同样的问题?我还可以尝试其他潜在的修复方法吗?最好是我不必卸载并重新安装 anaconda 的一种。导航器对我来说很重要,因为这是我将所有软件包安装到各种虚拟环境中的地方。如果它无法修复,我可以解决它,但我宁愿让它直接工作。感谢您的帮助。

anaconda

5
推荐指数
1
解决办法
5338
查看次数