小编Joh*_*ney的帖子

Pip安装扭曲错误1

pip install Twisted在Mac osx 10.9.4上使用virtualenv时,我得到了这个结果:

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/9r/3b500gbs3093ms87mqqbckr80000gn/T/pip-build-doynftp7/twisted/

我不知道该如何解决.我使用了easy_install,但是我遇到了SSL验证问题.有人有类似的问题吗?其余的错误消息如下.

 Collecting twisted
 Using cached Twisted-16.6.0.tar.bz2
 Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/incremental/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
Couldn't find index page for 'incremental' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
No local packages or working download links found …
Run Code Online (Sandbox Code Playgroud)

python macos openssl pip osx-mavericks

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

EJS.JS ReferenceError: 标题未定义

我在 express 中遇到脚本问题。我正在调用一个函数,该函数在另一个函数成功时呈现视图。在这个项目中,我使用 angular、node、express 和 ejs 作为视图引擎。当我渲染视图时,不幸的是收到以下 ejs 错误:

ReferenceError: /Users/emilywfrancis/Desktop/nodejs-angularjs-sequelizejs/views/about.ejs:5

3| <html ng-app="app">

4| <meta charset="utf-8">

5| <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/3.1.0/css/font-awesome.min.css" />

6| <% include header %>

7| <% include navbar %> 

8| <body>
  title is not defined
Run Code Online (Sandbox Code Playgroud)

这是代码:

exports.verifyusers= function(req, res) {
models.user.find({
where: {
  email: req.body.email,
  password: req.body.password
}
 }).then(function(res, user) {
    if(user == "user.name") { //if user exists in database
        res.render('/about')
    };
 });
};
Run Code Online (Sandbox Code Playgroud)

javascript ejs express angularjs

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

标签 统计

angularjs ×1

ejs ×1

express ×1

javascript ×1

macos ×1

openssl ×1

osx-mavericks ×1

pip ×1

python ×1