这就是我执行“ python -V ”时得到的
Python 2.7.11 :: Anaconda 2.4.0(64位) 我通常使用终端玩IDLE。但是现在我也安装了IDLE shell。
我在两者上都尝试了import sys; sys.path。它们抛出不同的路径。我的航站楼返回的路径中带有蟒蛇。
我尝试按照以下步骤安装模块。
python setup.py sdist
sudo python setup.py安装
然后我打开了IDLE(shell)。我能够导入并使用我的模块。
我想在Anaconda中做同样的事情..我尝试使用conda install filename.py。它不起作用。请帮忙。
这是我的表(CELLID)结构。
+---------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+------------+------+-----+---------+-------+
| CELL_ID | int(11) | NO | PRI | NULL | |
| STATUS | tinyint(4) | NO | | NULL | |
+---------+------------+------+-----+---------+-------+
Run Code Online (Sandbox Code Playgroud)
这是我要插入表中的代码。
knex('CELLID').insert(insertObj)
.then(function (result) {
_log.info(reqContainer.uuid, "Successfully Added To CELLID||", result)
// respond back to request
_log.info(reqContainer.uuid, "Exiting CELLID_S");
return resolve(result) // respond back to request
})
.catch(function (err) {
_log.error(reqContainer.uuid, "Failed Adding To CELLID ||", err)
_log.error(reqContainer.uuid, "Exiting CELLID_S"); …Run Code Online (Sandbox Code Playgroud)